Skip to content

Commit

Permalink
Use chromium, firefox and webkit in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed Oct 22, 2021
1 parent f62ff3a commit a512a61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ on:
- '.github/workflows/test.yml'

jobs:
npm:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [ chromium, firefox, webkit ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version: 14
- run: npm ci
- run: npm test
- run: npm run test-${{ matrix.browser }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"lint": "eslint .",
"build": "rollup --config rollup.config.ts --configPlugin babel={extensions:[\\\".ts\\\"],babelHelpers:\\\"bundled\\\"}",
"test": "playwright-test \"test/**/*.test.*\" --sw test/sw.ts",
"test-chromium": "npm test -- --browser chromium",
"test-firefox": "npm test -- --browser firefox",
"test-webkit": "npm test -- --browser webkit",
"coverage": "npm test -- --cov && nyc report",
"prepare": "npm run build"
}
Expand Down

0 comments on commit a512a61

Please sign in to comment.