Chore: playwright sharding (#13318)

* Chore: playwright sharding

* Chore: playwright sharding
This commit is contained in:
Michael Geers 2024-04-07 00:09:35 +02:00 • committed by GitHub
parent 0e7d7a5fa1
commit 5d963e2de3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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