CI/CD help Github actions with Gradle

Sorry this isn't exactly Java related, but I'm trying to automate the Junit tests over Github actions. I don't want to push my gradle wrapper to the repository, so I'm following this: https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version I tried adding gradle init and gradle build, but with the same results, the error is basically:
Directory '/home/runner/work/Cat/Cat' does not contain a Gradle build.
Any ideas how to resolve this?
GitHub
actions/docs/setup-gradle.md at main · gradle/actions
A collection of GitHub Actions to accelerate your Gradle Builds on GitHub - gradle/actions
3 Replies
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @☕Cat™! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
coffeecat9492
coffeecat9492OP2mo ago
For anyone having the same problem in the future, remember to commit your build.gradle file as well. (Kind of obvious in retrospect)
JavaBot
JavaBot2mo ago
Post Closed
This post has been closed by <@539078494252957697>.

Did you find this page helpful?