File tree 3 files changed +32
-8
lines changed
3 files changed +32
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - ' **'
10
+
11
+ jobs :
12
+ lint :
13
+ name : Lint on Node.js LTS
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+
20
+ - uses : actions/setup-node@v3
21
+ with :
22
+ node-version : ' lts/*'
23
+
24
+ - run : npm ci
25
+
26
+ - name : Lint and Test
27
+ run : npm run lint
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Test
2
2
3
3
on :
4
4
push :
10
10
11
11
jobs :
12
12
test :
13
- name : Lint and test on Node.js ${{ matrix.node }}
13
+ name : Test on Node.js ${{ matrix.node }}
14
14
15
15
runs-on : ubuntu-latest
16
16
26
26
with :
27
27
node-version : ${{ matrix.node }}
28
28
29
- - name : Install latest npm
30
- run : npm install --global npm@latest
31
-
32
29
- run : npm ci
33
30
34
- - name : Lint and Test
31
+ - name : Test
35
32
run : npm test
Original file line number Diff line number Diff line change 41
41
"prettier-config-hudochenkov" : " ^0.3.0"
42
42
},
43
43
"scripts" : {
44
- "test" : " npm run lint && jest" ,
45
- "jest " : " jest" ,
44
+ "test-full " : " npm run lint && jest" ,
45
+ "test " : " jest" ,
46
46
"watch" : " jest --watch" ,
47
47
"coverage" : " jest --coverage" ,
48
48
"fix" : " npm run lint -- --fix && prettier --write *.js 'lib/**/*.js'" ,
You can’t perform that action at this time.
0 commit comments