-
Notifications
You must be signed in to change notification settings - Fork 81
43 lines (38 loc) · 911 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on: [push, pull_request]
jobs:
test:
name: Test on Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '16', '14' ]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: npm ci
- name: Project Tests
run: npm test
test_latest:
name: Test on latest Node
runs-on: ubuntu-latest
container: node:current
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: npm ci
- name: Project Tests
run: npm test
eslint:
name: Check ESLint
runs-on: ubuntu-latest
container: node:current
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: npm ci
- name: check lint
run: npm run lint