Skip to content

Commit 18b9865

Browse files
committed
chore: add GitHub action to run tests
1 parent 5c3967d commit 18b9865

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node-version: [8.x, 10.x, 12.x, 13.x]
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: npm install and test
25+
shell: pwsh
26+
run: |
27+
npm install
28+
npm test
29+
env:
30+
CI: true

0 commit comments

Comments
 (0)