chore: run playwright tests in parallel (#13809)

This commit is contained in:
Michael Geers 2024-05-08 11:49:04 +02:00 • committed by GitHub
parent b9738abf15
commit f0e313c6d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 346 additions and 247 deletions

View file

@ -177,11 +177,6 @@ jobs:
integration:
name: Integration
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2]
shardTotal: [2]
steps:
- uses: actions/checkout@v4
@ -224,7 +219,7 @@ jobs:
run: npx playwright install --with-deps chromium
- name: Run tests
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: npx playwright test
# - name: Run tests
# uses: docker://mcr.microsoft.com/playwright:v1.34.3-jammy
@ -234,6 +229,6 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-${{ matrix.shardIndex }}
name: playwright-report
path: playwright-report/
retention-days: 14