Skip to content

Commit fe5c01c

Browse files
committedJul 28, 2021
Add GH actions workflow
1 parent 10ff00c commit fe5c01c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
 

‎.github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
env:
4+
CI: true
5+
6+
jobs:
7+
run:
8+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node: [12, 14, 15]
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
17+
steps:
18+
- name: Clone repository
19+
uses: actions/checkout@v1
20+
21+
- name: Set Node.js version
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
26+
- run: node --version
27+
- run: npm --version
28+
29+
- name: Install npm dependencies
30+
run: npm ci
31+
32+
- name: Run tests
33+
run: npm test
34+
shell: bash
35+
env:
36+
SHELL: "/bin/bash"

0 commit comments

Comments
 (0)
Please sign in to comment.