Skip to content

Commit 4e83b96

Browse files
committed
ci: Set up ci on main branch
1 parent 59199d7 commit 4e83b96

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '16.x'
17+
- name: Install Packages
18+
run: npm install
19+
- name: Lint Files
20+
run: node Makefile lint
21+
22+
test:
23+
name: Test
24+
strategy:
25+
matrix:
26+
os: [ubuntu-latest]
27+
node: [17.x, 16.x, 14.x, 12.x, "12.22.0"]
28+
include:
29+
- os: windows-latest
30+
node: "16.x"
31+
- os: macOS-latest
32+
node: "16.x"
33+
runs-on: ${{ matrix.os }}
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-node@v2
37+
with:
38+
node-version: ${{ matrix.node }}
39+
- name: Install Packages
40+
run: npm install
41+
- name: Test
42+
run: npm test

0 commit comments

Comments
 (0)