From 3b763fb0d929d147cfd5a62c1d2d7667e36c1f15 Mon Sep 17 00:00:00 2001 From: William Findlay Date: Wed, 10 Aug 2022 14:03:01 -0400 Subject: [PATCH] ci/vmtest: add concurrency groups With this change, force pushing or updating a job will cancel old runs, saving compute resources. Signed-off-by: William Findlay --- .github/workflows/vmtests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/vmtests.yml b/.github/workflows/vmtests.yml index b2569e72a9e..f665f07eb7e 100644 --- a/.github/workflows/vmtests.yml +++ b/.github/workflows/vmtests.yml @@ -11,6 +11,9 @@ jobs: name: Build tetragon runs-on: ubuntu-latest timeout-minutes: 20 + concurrency: + group: ${{ github.ref }}-vmtest-build + cancel-in-progress: true steps: - name: Install Go uses: actions/setup-go@v3 @@ -67,6 +70,9 @@ jobs: - 0 - 1 - 2 + concurrency: + group: ${{ github.ref }}-vmtest-${{ matrix.kernel }}-${{ matrix.group }} + cancel-in-progress: true needs: build name: Test kernel ${{ matrix.kernel }} / test group ${{ matrix.group }} runs-on: ubuntu-latest