ci: Add GitHub Actions Workflow for Java 21 and Gradle Build#11
ci: Add GitHub Actions Workflow for Java 21 and Gradle Build#11
Conversation
- Configure CI to run on push and PR to main/develop branches. - Set up JDK 21 environment to match project toolchain. - Use 'gradle/actions/setup-gradle' for automatic caching and wrapper validation. - Execute 'build' and 'shadowJar' tasks to verify tests and executable jar creation.
📝 WalkthroughWalkthroughAdds a new GitHub Actions workflow ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
- Remove deprecated 'arguments' parameter from setup-gradle action. - Separate Gradle setup and execution steps. - Execute './gradlew build shadowJar' directly in a run step.
📝 Description
This Pull Request introduces a new Continuous Integration (CI) workflow using GitHub Actions. The primary goal is to automate the build and test process for the project, ensuring code quality and build integrity with every change. This workflow specifically targets Java 21 and Gradle, aligning with the project's current toolchain and ensuring that all contributions are validated against the expected environment.
✨ What does this PR do?
ci-with-gradle.yml) in the.github/workflows/directory.pushevents andpull_requestevents targeting themainanddevelopbranches, providing immediate feedback on code changes.gradle/actions/setup-gradle@v4for efficient Gradle build execution, which includes automatic caching of Gradle dependencies and validation of the Gradle wrapper.buildandshadowJarGradle tasks. This verifies that the project compiles successfully, passes all tests, and can produce the executableshadowJar, ensuring the application is always buildable and functional.gradlewwrapper script before running Gradle commands.Summary by CodeRabbit