From 5d963e2de37b513b5ee52f699e9a38e0b16d1e72 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sun, 7 Apr 2024 00:09:35 +0200 Subject: [PATCH] Chore: playwright sharding (#13318) * Chore: playwright sharding * Chore: playwright sharding --- .github/workflows/default.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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