Skip to content

Commit 60f00aa

Browse files
committed
Add CI tests
1 parent 14ed921 commit 60f00aa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/workflow.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
on:
3+
# Ensure GitHub actions are not run twice for same commits
4+
push:
5+
branches: [master]
6+
tags: ["*"]
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
timeout-minutes: 30
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macOS-latest]
16+
node-version: [12.x, 14.x]
17+
exclude:
18+
- os: macOS-latest
19+
node-version: 12.x
20+
fail-fast: false
21+
steps:
22+
- name: Git checkout
23+
uses: actions/checkout@v2
24+
- name: Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
- name: Install dependencies
29+
run: npm ci
30+
- name: Tests
31+
run: npm test

0 commit comments

Comments
 (0)