From d1fa789d44655c197e9e5995060220ba9549cb42 Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 10:22:01 +0100 Subject: [PATCH 1/7] e2e playwright --- .github/workflows/fe-e2e.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 04c9da9..7760ed9 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -14,6 +14,44 @@ on: required: true jobs: + e2e-playwright: + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.36.1 + options: --user 1001 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.GHA_REF }} + fetch-depth: 0 + + - name: Cache Node Modules + id: npm-cache + uses: actions/cache@v4 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + + - name: Fetch base branch + run: git fetch origin ${{ inputs.GHA_BASE }}:${{ inputs.GHA_BASE }} || true + + - name: Affected Regression Tests + id: playwrightRegressionTests + continue-on-error: true + uses: collaborationFactory/github-actions/.github/actions/run-many@master + with: + target: 'e2e-playwright' + jobIndex: 0 + jobCount: 1 + base: ${{ inputs.GHA_BASE }} + ref: ${{ inputs.GHA_REF }} + + - name: Fail pipeline if regressionTests step failed + run: | + if [ "${{ steps.playwrightRegressionTests.outcome }}" = "failure" ]; then + echo "Regression tests step failed, failing the pipeline." + exit 1 + fi e2e: runs-on: ubuntu-latest container: From 4c3f8c16b200acb65fb80d9ecd9081f40659d8fd Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 11:05:32 +0100 Subject: [PATCH 2/7] Add setup-node --- .github/workflows/fe-e2e.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 7760ed9..85c1628 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -25,6 +25,10 @@ jobs: ref: ${{ inputs.GHA_REF }} fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 22.15.0 + - name: Cache Node Modules id: npm-cache uses: actions/cache@v4 From 43498277ce078591062ed8d0aa57934f8cfc5b42 Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 11:29:58 +0100 Subject: [PATCH 3/7] Manually install playwright browsers --- .github/workflows/fe-e2e.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 85c1628..1bd0af3 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -16,9 +16,6 @@ on: jobs: e2e-playwright: runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.36.1 - options: --user 1001 steps: - uses: actions/checkout@v4 with: @@ -36,6 +33,9 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Fetch base branch run: git fetch origin ${{ inputs.GHA_BASE }}:${{ inputs.GHA_BASE }} || true From 4486bafd64d9e6342298860e9dfaee1552e2251e Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 13:28:18 +0100 Subject: [PATCH 4/7] Downgrade os version --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 1bd0af3..f359dbb 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -15,7 +15,7 @@ on: jobs: e2e-playwright: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: From e80901b575f180b2928b26a5fdd61dedc09656b1 Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 13:36:08 +0100 Subject: [PATCH 5/7] Fixup index --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index f359dbb..c132103 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -45,7 +45,7 @@ jobs: uses: collaborationFactory/github-actions/.github/actions/run-many@master with: target: 'e2e-playwright' - jobIndex: 0 + jobIndex: 1 jobCount: 1 base: ${{ inputs.GHA_BASE }} ref: ${{ inputs.GHA_REF }} From 9b27ad321654ae96ea139027a90dd328fb133842 Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 14:38:44 +0100 Subject: [PATCH 6/7] Fix ci config for e2e --- tools/scripts/run-many/run-many.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/scripts/run-many/run-many.ts b/tools/scripts/run-many/run-many.ts index 386b7b9..c17d0c8 100644 --- a/tools/scripts/run-many/run-many.ts +++ b/tools/scripts/run-many/run-many.ts @@ -69,10 +69,12 @@ function main() { const projects = getAffectedProjects(target, jobIndex, jobCount, base, ref); const runManyProjectsCmd = `npx nx run-many --targets=${target} --projects="${projects}"`; - let cmd = `${runManyProjectsCmd} --parallel=false --prod`; + let cmd = `${runManyProjectsCmd} --parallel=false`; if (target.includes('e2e')) { cmd = getE2ECommand(cmd, base); + } else { + cmd = cmd.concat(' --prod'); } // Add coverage flag if enabled and target is test From a44877144f1fc6072d61279835b668e2fd770926 Mon Sep 17 00:00:00 2001 From: Eric Auster Date: Fri, 13 Mar 2026 14:50:17 +0100 Subject: [PATCH 7/7] Change version for testing --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index c132103..88a01a2 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -42,7 +42,7 @@ jobs: - name: Affected Regression Tests id: playwrightRegressionTests continue-on-error: true - uses: collaborationFactory/github-actions/.github/actions/run-many@master + uses: collaborationFactory/github-actions/.github/actions/run-many@test/playwright with: target: 'e2e-playwright' jobIndex: 1