Skip to content

Commit

Permalink
Add Build Gradle Pr Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 27, 2024
1 parent d5d61f5 commit 1e22509
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gradle-pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Gradle for Pull Request

on:
pull-request:
branches:
- 1.21.1
- 1.20.1
types:
- synchronize
- opened
- reopened

jobs:
gradle:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 21
cache: gradle

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Execute Gradle build
run: ./gradlew build --scan

0 comments on commit 1e22509

Please sign in to comment.