Chore: playwright sharding (#13318)
* Chore: playwright sharding * Chore: playwright sharding
This commit is contained in:
parent
0e7d7a5fa1
commit
5d963e2de3
1 changed files with 8 additions and 3 deletions
11
.github/workflows/default.yml
vendored
11
.github/workflows/default.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue