File tree Expand file tree Collapse file tree 4 files changed +9
-21
lines changed Expand file tree Collapse file tree 4 files changed +9
-21
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,26 +2,23 @@ name: Tests and coverage
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches : [" main" ]
6
6
pull_request :
7
- branches : [main]
7
+ branches : [" main" ]
8
8
9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- node-version : [14.x, 16.x]
12
+
13
+
15
14
steps :
16
15
- uses : actions/checkout@v3
17
16
- name : Use Node.js ${{ matrix.node-version }}
18
17
uses : actions/setup-node@v3
19
18
with :
20
- node-version : ${{ matrix.node-version }}
21
- - name : Install dependencies
22
- uses : bahmutov/npm-install@v1
23
- - run : npm run coverage
24
-
19
+ node-version : 16.x
20
+ cache : " npm"
21
+ - run : npm install
25
22
- name : Coveralls
26
23
uses : coverallsapp/github-action@master
27
24
with :
Original file line number Diff line number Diff line change @@ -14,20 +14,10 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - name : Get npm cache directory
18
- id : npm-cache
19
- run : |
20
- echo "::set-output name=dir::$(npm config get cache)"
21
- - uses : actions/cache@v3
22
- with :
23
- path : ${{ steps.npm-cache.outputs.dir }}
24
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25
- restore-keys : |
26
- ${{ runner.os }}-node-
27
17
- uses : actions/checkout@v3
28
18
- name : Use Node.js ${{ matrix.node-version }}
29
19
uses : actions/setup-node@v3
30
20
with :
31
21
node-version : " 16.x"
32
- - run : npm ci
22
+ - run : npm install
33
23
- run : npm run lint
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const allVersions = [
26
26
"7.1.0" ,
27
27
"7.2.0" ,
28
28
"7.3.0" ,
29
+ "8.0.0" ,
29
30
] ;
30
31
const cases = [
31
32
null ,
You can’t perform that action at this time.
0 commit comments