Skip to content

ci: Add GitHub Actions Workflow for Java 21 and Gradle Build#11

Merged
jher235 merged 2 commits intodevelopfrom
feat/ci-workflow
Feb 9, 2026
Merged

ci: Add GitHub Actions Workflow for Java 21 and Gradle Build#11
jher235 merged 2 commits intodevelopfrom
feat/ci-workflow

Conversation

@jher235
Copy link
Owner

@jher235 jher235 commented Feb 9, 2026

📝 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?

  • Introduces a new GitHub Actions workflow file (ci-with-gradle.yml) in the .github/workflows/ directory.
  • Configures CI Triggers: The workflow is set to automatically run on push events and pull_request events targeting the main and develop branches, providing immediate feedback on code changes.
  • Sets up Java 21 Environment: It provisions a build environment with JDK 21 (Temurin distribution) to precisely match the project's required Java version.
  • Utilizes Gradle Action: Employs gradle/actions/setup-gradle@v4 for efficient Gradle build execution, which includes automatic caching of Gradle dependencies and validation of the Gradle wrapper.
  • Executes Build Tasks: The workflow runs the build and shadowJar Gradle tasks. This verifies that the project compiles successfully, passes all tests, and can produce the executable shadowJar, ensuring the application is always buildable and functional.
  • Ensures Executable Permissions: Grants execute permissions to the gradlew wrapper script before running Gradle commands.

Summary by CodeRabbit

  • Chores
    • Added a continuous integration workflow to automatically run builds on push and pull-request events for main and develop.
    • CI now runs on Ubuntu, sets up Java 21, and executes the Gradle build (including producing an application artifact) to ensure changes compile and package correctly.

- 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.
@jher235 jher235 self-assigned this Feb 9, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 9, 2026

📝 Walkthrough

Walkthrough

Adds a new GitHub Actions workflow (ci-with-gradle.yml) that runs on push and pull_request for main and develop, sets permissions, checks out code, installs Temurin JDK 21, makes the Gradle wrapper executable, and runs Gradle tasks including build and shadowJar.

Changes

Cohort / File(s) Summary
CI Workflow Configuration
.github/workflows/ci-with-gradle.yml
New workflow added: triggers on push and PR for main/develop, grants repo read permission, runs on ubuntu-latest, steps include checkout, setup JDK 21 (Temurin), chmod +x on Gradle wrapper, and Gradle build (build and shadowJar) via gradle/actions/setup-gradle.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A tiny file hops into place, smooth and spry,
Steps lined up to build beneath the CI sky,
JDK warmed, Gradle dances in its role,
Main and develop join the joyful goal,
Pipelines hum — a rabbit's little sigh. 🥕✨


Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands and usage tips.

- Remove deprecated 'arguments' parameter from setup-gradle action.
- Separate Gradle setup and execution steps.
- Execute './gradlew build shadowJar' directly in a run step.
@jher235 jher235 merged commit 01c4415 into develop Feb 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant