From 8e61e1e3a153c80dfe6d4fe39a58ecee96095b5a Mon Sep 17 00:00:00 2001 From: Kim Kern Date: Fri, 27 Sep 2024 16:04:55 +0200 Subject: [PATCH] Extract e2e job into separate workflow RISDEV-0000 With the separation, the concurrency group is only applied on workflow level and not for each of the matrix e2e jobs individually. --- .github/workflows/e2e_matrix.yml | 17 +++++++++++++++++ .github/workflows/pipeline.yml | 16 ++-------------- 2 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/e2e_matrix.yml diff --git a/.github/workflows/e2e_matrix.yml b/.github/workflows/e2e_matrix.yml new file mode 100644 index 0000000000..31e48d7e38 --- /dev/null +++ b/.github/workflows/e2e_matrix.yml @@ -0,0 +1,17 @@ +jobs: + e2e-matrix: + strategy: + fail-fast: false + matrix: + subproject: [ caselaw, shared ] + browser: [ chromium, firefox ] + mode: [ e2e ] + include: + - mode: a11y + browser: a11y + uses: ./.github/workflows/_playwright-test.yml + with: + subproject: ${{ matrix.subproject}} + browser: ${{ matrix.browser }} + mode: ${{ matrix.mode }} + secrets: inherit diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 93972eb150..8e496ac13c 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -364,20 +364,8 @@ jobs: group: deploy-staging cancel-in-progress: true needs: [ deploy-staging, prep-playwright-tests ] - strategy: - fail-fast: false - matrix: - subproject: [ caselaw, shared ] - browser: [ chromium, firefox ] - mode: [ e2e ] - include: - - mode: a11y - browser: a11y - uses: ./.github/workflows/_playwright-test.yml - with: - subproject: ${{ matrix.subproject}} - browser: ${{ matrix.browser }} - mode: ${{ matrix.mode }} + # We do not include the matrix directly, so that the concurrency group does not apply to each matrix job individually + uses: ./.github/workflows/e2e_matrix.yml secrets: inherit query-performance-tests: