Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit d040797

Browse files
committed
Add CI
1 parent 2145cc7 commit d040797

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "dependabot/**"
8+
pull_request:
9+
branches:
10+
- "**"
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
test:
17+
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
node: [10, 12]
25+
os: [ubuntu-latest, windows-latest, macos-latest]
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Use Node.js ${{ matrix.node }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node }}
34+
35+
- name: Install latest npm
36+
run: npm install --global npm@latest
37+
38+
- name: Install dependencies
39+
run: npm ci
40+
41+
- name: Test
42+
run: npm test

0 commit comments

Comments
 (0)