Ver Fonte

ci: Disable fail-fast, add concurrency options

If one option from the test matrix fails, we are still interested in the
results from the other ones, so we disable the fail-fast feature.

However, one case where we're not intersted in the results from the run
is when a user pushes a new version of their code on their branch for
the Pull Request. Add concurrency set-up to the workflow to cancel
ongoing builds when the PR is updated.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Quentin Monnet há 2 anos atrás
pai
commit
06229a98df
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      .github/workflows/test.yaml

+ 5 - 0
.github/workflows/test.yaml

@@ -6,6 +6,10 @@ on:
     branches:
       - master
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
+  cancel-in-progress: true
+
 jobs:
   build_and_test:
     name: Build and test package
@@ -17,6 +21,7 @@ jobs:
       KNOWN_FAILURES: "(lock|mem-len)"
       CONFORMANCE_IMAGE: "ghcr.io/alan-jowett/bpf_conformance@sha256:547765717557e0f222de71fbf26f4bd9621c0149911aa03296024b469dd4598b"
     strategy:
+      fail-fast: false
       matrix:
         include:
           - toolchain: stable