From edcb7be0ee3550d57f60907777ac5d25b6d8b69f Mon Sep 17 00:00:00 2001 From: Emilio Palumbo Date: Mon, 17 Jun 2024 20:30:47 +0200 Subject: [PATCH] Set concurrency for GitHub workflow --- .github/workflows/test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d5dfff..cd149e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,9 @@ jobs: pipeline-test: name: Pipeline tests runs-on: ubuntu-latest - needs: workflow-test + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false @@ -50,7 +52,9 @@ jobs: workflow-test: name: Workflow tests runs-on: ubuntu-latest - needs: module-test + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v4 @@ -70,6 +74,9 @@ jobs: module-test: name: Module tests runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v4