Compare commits

...

4 Commits

Author SHA1 Message Date
Valere
405a8aa147 fix: unique report per shard 2026-04-10 17:08:18 +02:00
Valere
ea540e95d4 use sharding to speed up tests 2026-04-10 16:53:10 +02:00
Valere
d8a85bb7a1 revert to 1 worker, was flaky 2026-04-10 16:51:34 +02:00
Valere
10efeea5a7 use 2 workers for playwright tests 2026-04-10 16:27:27 +02:00
2 changed files with 7 additions and 3 deletions

View File

@@ -34,6 +34,11 @@ jobs:
name: Run end-to-end tests
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false # Don't cancel other shards if one fails
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
@@ -56,10 +61,10 @@ jobs:
- name: Run Playwright tests
env:
USE_DOCKER: 1
run: yarn playwright test
run: yarn playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: ${{ !cancelled() }}
with:
name: playwright-report
name: playwright-report-${{ matrix.shardIndex }}-${{ matrix.shardTotal }}
path: playwright-report/
retention-days: 3

View File

@@ -23,7 +23,6 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",