Skip to content

Commit

Permalink
write to different artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed May 20, 2022
1 parent 25eea04 commit b0bef82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Cache node_modules
uses: actions/cache@v3
Expand All @@ -43,20 +40,17 @@ jobs:
run: npx playwright install --with-deps

test:
name: 🧪 Test (${{ matrix.shard }})
name: 🧪 Test (${{ matrix.shard }}/${{ strategy.job-total }})
needs: install
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: ["1/2", "2/2"]
shard: [1, 2]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Cache node_modules
uses: actions/cache@v3
Expand All @@ -73,11 +67,11 @@ jobs:
key: playwright-${{ hashFiles('package-lock.json') }}

- name: Run Playwright tests
run: npx playwright test --shard=${{ matrix.shard }}
run: npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
name: playwright-report-${{ matrix.shard }}_${{ strategy.job-total }}
path: playwright-report
retention-days: 30
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
.idea

0 comments on commit b0bef82

Please sign in to comment.