Skip to content

Commit

Permalink
test per browser, node and os
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed May 20, 2024
1 parent 8d4990c commit 79d4004
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
browser: [chromium, firefox, webkit]
node: [18, 20, 22]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: pnpm i
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
- name: Run Playwright tests
run: pnpm exec playwright test
run: pnpm exec playwright test --project=${{ matrix.browser }}"
- name: Upload report to GitHub Actions Artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 79d4004

Please sign in to comment.