diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fb6a1feb3..a746d05bd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [main] +# Ensures that we cancel running jobs for the same PR / same workflow. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: coverage: runs-on: ubuntu-latest diff --git a/.github/workflows/long_running.yml b/.github/workflows/long_running.yml index b937f7b41..f15f3d76d 100644 --- a/.github/workflows/long_running.yml +++ b/.github/workflows/long_running.yml @@ -8,6 +8,11 @@ env: CARGO_TERM_COLOR: always NUM_FUNCTIONAL_TEST_ITERATIONS: 20000 +# Ensures that we cancel running jobs for the same PR / same workflow. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62b706515..e7ce3f39a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,11 @@ on: env: CARGO_TERM_COLOR: always +# Ensures that we cancel running jobs for the same PR / same workflow. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check: