Skip to content

Commit 5e84f8e

Browse files
committed
ci: add browser testing
1 parent 30f7f79 commit 5e84f8e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
nodejs:
77
runs-on: ubuntu-20.04
88

99
strategy:
@@ -23,3 +23,19 @@ jobs:
2323
- run: npm ci
2424
- run: npm run test:cover
2525
- run: codecov -f coverage/*.json
26+
27+
browser:
28+
runs-on: ubuntu-20.04
29+
strategy:
30+
matrix:
31+
browser: [ChromeHeadless, FirefoxHeadless]
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Setup Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v1
37+
38+
- run: npm install -g npm
39+
- run: npm ci
40+
- run: npm run test:browser -- --browsers "${{ matrix.browser }}"
41+

0 commit comments

Comments
 (0)