Skip to content

Commit

Permalink
Add PR build 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 24, 2024
1 parent b954d3c commit 2174ef5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Gradle for Pull Request

on:
pull-request:
branches:
- 1.21.1
- 1.20.1

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 2174ef5

Please sign in to comment.