From cd990de79dcbe61e6ac546eac1b063fae813158c Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Thu, 13 Oct 2022 14:03:52 +0200 Subject: [PATCH 1/2] add concurrency cancellation for test/build actions --- .github/workflows/check.yml | 4 ++++ .github/workflows/dokka-examples.yml | 7 ++++++- .github/workflows/gradle-test.pr.yml | 4 ++++ .github/workflows/qodana.yml | 5 +++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 04b3cb72e0..bda34f96fb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -2,6 +2,10 @@ name: Check on: pull_request +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: validate-wrapper: runs-on: ubuntu-latest diff --git a/.github/workflows/dokka-examples.yml b/.github/workflows/dokka-examples.yml index f6b673b5be..68ad0dd3c6 100644 --- a/.github/workflows/dokka-examples.yml +++ b/.github/workflows/dokka-examples.yml @@ -2,6 +2,10 @@ name: Build examples on: pull_request +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: strategy: @@ -123,6 +127,7 @@ jobs: with: distribution: 'zulu' java-version: 11 + - uses: gradle/gradle-build-action@v2 # provides a cache of .m2 dependencies - run: mvn compile dokka:dokka working-directory: examples/maven - if: steps.filter.outputs.examples_changed == 'true' \ No newline at end of file + if: steps.filter.outputs.examples_changed == 'true' diff --git a/.github/workflows/gradle-test.pr.yml b/.github/workflows/gradle-test.pr.yml index f24bf477c2..a0e304f7ec 100644 --- a/.github/workflows/gradle-test.pr.yml +++ b/.github/workflows/gradle-test.pr.yml @@ -2,6 +2,10 @@ name: Test on: pull_request +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: test-ubuntu: strategy: diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 2c1f87f41c..4b7c486a65 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -6,6 +6,11 @@ on: push: branches: - master + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: inspection: runs-on: ubuntu-latest From f4f2fe8b16c84bad482193ab19d5ce611852770c Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Thu, 13 Oct 2022 14:08:23 +0200 Subject: [PATCH 2/2] rm accidentally committed GHA .m2 cache update --- .github/workflows/dokka-examples.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dokka-examples.yml b/.github/workflows/dokka-examples.yml index 68ad0dd3c6..e97cd1014b 100644 --- a/.github/workflows/dokka-examples.yml +++ b/.github/workflows/dokka-examples.yml @@ -127,7 +127,6 @@ jobs: with: distribution: 'zulu' java-version: 11 - - uses: gradle/gradle-build-action@v2 # provides a cache of .m2 dependencies - run: mvn compile dokka:dokka working-directory: examples/maven if: steps.filter.outputs.examples_changed == 'true'