5
5
name : Linters
6
6
runs-on : ubuntu-latest
7
7
steps :
8
- - uses : actions/checkout@v1
9
- - uses : actions/setup-node@v1
8
+ - uses : actions/checkout@v3
9
+ - uses : actions/setup-node@v3
10
+ with :
11
+ node-version : ' lts/*'
10
12
- run : npm ci --ignore-scripts
11
13
- run : npm run prettier:check
12
14
- run : npm run lint:check
@@ -15,27 +17,29 @@ jobs:
15
17
runs-on : ubuntu-latest
16
18
strategy :
17
19
matrix :
18
- node-version : ['10.x ', '12.x', '14.x ']
20
+ node-version : ['lts/* ', 'current ']
19
21
fail-fast : false
20
22
steps :
21
- - uses : actions/checkout@v1
23
+ - uses : actions/checkout@v3
22
24
- name : Setting up Node.js (v${{ matrix.node-version }}.x)
23
- uses : actions/setup-node@v1
25
+ uses : actions/setup-node@v3
24
26
with :
25
27
node-version : ${{ matrix.node-version }}
26
28
- run : npm ci --ignore-scripts
27
29
- run : npm run test:ci
28
30
- run : npm install codecov -g
29
- if : ${{ matrix.node-version == '14.x ' }}
31
+ if : ${{ matrix.node-version == 'current ' }}
30
32
- run : codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
31
- if : ${{ matrix.node-version == '14.x ' }}
33
+ if : ${{ matrix.node-version == 'current ' }}
32
34
build :
33
35
name : Build
34
36
runs-on : ubuntu-latest
35
37
steps :
36
- - uses : actions/checkout@v1
37
- - uses : actions/setup-node@v1
38
+ - uses : actions/checkout@v3
39
+ - uses : actions/setup-node@v3
40
+ with :
41
+ node-version : ' lts/*'
38
42
- run : npm ci --ignore-scripts
39
43
- run : npm run build:es2015
40
44
- run : npm run build:cjs
41
- - run : npm run build:types
45
+ - run : npm run build:types
0 commit comments