chore: run playwright tests in parallel (#13809)
This commit is contained in:
parent
b9738abf15
commit
f0e313c6d4
19 changed files with 346 additions and 247 deletions
9
.github/workflows/default.yml
vendored
9
.github/workflows/default.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue