Skip to content

Commit 2194427

Browse files
author
Jonathan Ginsburg
committed
ci: add the "Test" GitHub Actions workflow
1 parent 69ba2ea commit 2194427

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
linux:
10+
name: "Node ${{ matrix.node }} on Linux: Test and Lint"
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node:
15+
- 10
16+
- 12
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
cache: npm
25+
- uses: browser-actions/setup-chrome@latest
26+
- run: npm ci
27+
- run: npm run lint
28+
- run: npm run test
29+
windows:
30+
name: "Node ${{ matrix.node }} on Windows: Test and Lint"
31+
runs-on: windows-latest
32+
defaults:
33+
run:
34+
shell: bash
35+
strategy:
36+
matrix:
37+
node:
38+
- 10
39+
- 12
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: actions/setup-node@v2
43+
with:
44+
node-version: ${{ matrix.node }}
45+
cache: npm
46+
- run: npm ci
47+
- run: npm run test

0 commit comments

Comments
 (0)