diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml new file mode 100644 index 000000000..4e3b3f804 --- /dev/null +++ b/.github/workflows/gradle-build.yml @@ -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 \ No newline at end of file