48 lines (46 loc) · 1.08 KB
/
CI.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
44
45
46
47
48
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: 0 0 * * 0
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest]
eslint: [8]
node: [16]
include:
# On other platforms
- node: 16
os: windows-latest
- node: 16
os: macos-latest
# On old Node.js versions
- node: 14
os: ubuntu-latest
- node: 12
os: ubuntu-latest
# On the minimum supported ESLint/Node.js version
- node: 12.22.0
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
- name: Test
run: npm test
- name: Send Coverage
run: npm run -s codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}