From 99a4f35f83dcafb9898aaca4de75c13cc395f19c Mon Sep 17 00:00:00 2001 From: Jacob Kerr Date: Thu, 22 Jan 2026 20:43:02 -0500 Subject: [PATCH] Add GitHub Action that compiles project --- .github/workflows/gradle.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..e685450 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,26 @@ +name: Java CI with Gradle + +on: # What the possible triggers for this action are + push: # On a commit to a branch + branches: [ "main" ] # Only on the main branch + pull_request: # On a pull request + workflow_dispatch: # On manual trigger + +permissions: + contents: read # Requires read access to the repository contents + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 # Check out the repository code + - name: Set up JDK 17 # Download and set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Build with Gradle # Build the project using Gradle + uses: gradle/gradle-build-action@v2.4.2 + with: + arguments: build