fix: ensure unique keys by using index in shortcut list #1420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
playwright: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: [chromium, firefox, webkit] | |
test-type: [ct, e2e] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run ${{ matrix.test-type }} tests on ${{ matrix.project }} | |
run: npm run playwright-${{ matrix.test-type }} -- --project ${{ matrix.project }} | |
- name: Upload playwright report | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report-${{ matrix.project }}-${{ matrix.test-type }} | |
path: playwright-report/ | |
retention-days: 15 |