From e8b1d27bdf66fdb9947a2c2666f0a9d9496114d7 Mon Sep 17 00:00:00 2001 From: Jonathan Percival Date: Sun, 19 Nov 2023 13:39:34 -0700 Subject: [PATCH] Update github workflows --- .github/workflows/build.yml | 8 ++++++-- .github/workflows/check-pr.yml | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a0048d8a..ca0934093 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,10 @@ on: permissions: contents: write +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: gradle: runs-on: ubuntu-latest @@ -15,11 +19,11 @@ jobs: - uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 19 - name: Setup and execute Gradle 'publish' task uses: gradle/gradle-build-action@v2 with: - arguments: publish + arguments: check publish build-root-directory: Src/java env: OSSRH_USERNAME: ${{ vars.OSSRH_USERNAME }} diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 4f44ebd59..159f342a5 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -13,11 +13,11 @@ jobs: - uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 19 - name: Setup and execute Gradle 'check' task uses: gradle/gradle-build-action@v2 with: - arguments: check -i + arguments: check build-root-directory: Src/java - name: Publish Test Report uses: mikepenz/action-junit-report@v3