From 4d91bfe714bbed301966eb69bcfb8b3a673b4019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Wed, 31 Dec 2025 10:33:30 +0100 Subject: [PATCH] ci: Configure the concurrency for the GitHub Actions workflows This only the latest PR or commit on the main branch gets a job, the previous ones are cancelled. --- .github/workflows/ci.yaml | 4 ++++ .github/workflows/cs.yaml | 4 ++++ .github/workflows/e2e-tests.yaml | 4 ++++ .github/workflows/mt.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1c98e5..bfa9073 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,10 @@ on: - main - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest diff --git a/.github/workflows/cs.yaml b/.github/workflows/cs.yaml index 0152385..363ca83 100644 --- a/.github/workflows/cs.yaml +++ b/.github/workflows/cs.yaml @@ -10,6 +10,10 @@ on: - main - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: coding-standards: runs-on: ubuntu-latest diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index ca68484..78c8783 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -10,6 +10,10 @@ on: - main - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest diff --git a/.github/workflows/mt.yaml b/.github/workflows/mt.yaml index a9e30fd..fc05c5c 100644 --- a/.github/workflows/mt.yaml +++ b/.github/workflows/mt.yaml @@ -10,6 +10,10 @@ on: - main - master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: mutation-testing: runs-on: ubuntu-latest