Skip to content

Commit 3a72ff0

Browse files
committed
CCM-10981: try sharding
1 parent 114ce47 commit 3a72ff0

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/actions/acceptance-tests/action.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ inputs:
2222
runs:
2323
using: "composite"
2424

25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
shardIndex: [1, 2, 3, 4]
29+
shardTotal: [4]
30+
2531
steps:
2632
- name: Fetch terraform output
2733
uses: actions/download-artifact@v5
@@ -32,6 +38,9 @@ runs:
3238
run: |
3339
npm ci
3440
41+
- name: Install Playwright browsers
42+
run: npx playwright install --with-deps
43+
3544
- name: Generate outputs file
3645
shell: bash
3746
run: |
@@ -42,7 +51,10 @@ runs:
4251
- name: Run test - ${{ inputs.testType }}
4352
shell: bash
4453
run: |
45-
make test-${{ inputs.testType }}
54+
npx playwright test --project=component:setup
55+
npx playwright test --project=component --no-deps --shard${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
56+
npx playwright test --project=component:teardown --no-deps
57+
4658
4759
- name: Archive test results
4860
uses: actions/upload-artifact@v4

tests/test-team/config/api/api.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import baseConfig from '../playwright.config';
44
export default defineConfig({
55
...baseConfig,
66

7+
workers: 1,
78
timeout: 10_000,
89
projects: [
910
{

0 commit comments

Comments
 (0)