diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 565a77419..1f7c92514 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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