File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
21
21
# Go
22
22
steps :
23
23
- name : Check out repo
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
26
26
- name : Set up Node.js
27
- uses : actions/setup-node@v3
27
+ uses : actions/setup-node@v4
28
28
with :
29
29
node-version : ${{ matrix.node-version }}
30
30
40
40
- name : Install
41
41
run : npm install
42
42
43
+ - name : Test (Node.js <= 16.x)
44
+ if : matrix.node-version <= '16.x'
45
+ run : npm run test:nolint
46
+ env :
47
+ CI : true
48
+
43
49
- name : Test
50
+ if : matrix.node-version > '16.x'
44
51
run : npm test
45
52
env :
46
53
CI : true
@@ -72,10 +79,10 @@ jobs:
72
79
# Go
73
80
steps :
74
81
- name : Check out repo
75
- uses : actions/checkout@v3
82
+ uses : actions/checkout@v4
76
83
77
84
- name : Set up Node.js
78
- uses : actions/setup-node@v3
85
+ uses : actions/setup-node@v4
79
86
with :
80
87
node-version : lts/*
81
88
registry-url : https://registry.npmjs.org/
Original file line number Diff line number Diff line change 12
12
"types" : " types/index.d.ts" ,
13
13
"scripts" : {
14
14
"lint" : " eslint --fix ." ,
15
+ "test" : " npm run lint && npm run test:integration && npm run coverage && npm run test:types" ,
16
+ "test:nolint" : " npm run test:integration && npm run coverage && npm run test:types" ,
15
17
"test:unit" : " cross-env tape 'test/unit/**/*-test.js' | tap-arc" ,
16
18
"test:integration" : " cross-env tape 'test/integration/**/*-test.js' | tap-arc" ,
17
19
"coverage" : " nyc --reporter=lcov --reporter=text npm run test:unit" ,
18
- "test" : " npm run lint && npm run test:integration && npm run coverage && npm run test:types" ,
19
20
"test:types" : " tsd --files types/*.test-d.ts" ,
20
21
"rc" : " npm version prerelease --preid RC"
21
22
},
You can’t perform that action at this time.
0 commit comments