File tree Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change 8
8
CI : true
9
9
10
10
jobs :
11
+ lint :
12
+ runs-on : ubuntu-latest
13
+ if : github.event_name == 'pull_request'
14
+ strategy :
15
+ matrix :
16
+ node-version :
17
+ - " 16"
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ with :
21
+ fetch-depth : 0
22
+ - uses : actions/setup-node@v3
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+ cache : npm
26
+ - run : npm i -g npm@8.7
27
+ - run : npm ci
28
+ - run : npm run lint:changed-files
11
29
unit :
12
30
runs-on : ubuntu-latest
13
31
strategy :
14
32
matrix :
15
33
node-version :
16
34
- 14.x
17
35
- 16.x
36
+ - 18.x
18
37
steps :
19
38
- uses : actions/checkout@v1
20
39
- uses : actions/setup-node@v1
21
40
with :
22
41
node-version : ${{ matrix.node-version }}
23
-
24
42
- name : Cache npm
25
43
uses : actions/cache@v1
26
44
with :
27
45
path : ~/.npm
28
46
key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
29
-
30
- - run : npm ci
31
- - run : npm run lint
32
- - run : npm run format
33
47
- run : npm run test
34
48
integration :
35
49
runs-on : ubuntu-latest
@@ -38,17 +52,16 @@ jobs:
38
52
node-version :
39
53
- 14.x
40
54
- 16.x
55
+ - 18.x
41
56
steps :
42
57
- uses : actions/checkout@v1
43
58
- uses : actions/setup-node@v1
44
59
with :
45
60
node-version : ${{ matrix.node-version }}
46
-
47
61
- name : Cache npm
48
62
uses : actions/cache@v1
49
63
with :
50
64
path : ~/.npm
51
65
key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
52
-
53
- - run : npm install
66
+ - run : npm ci
54
67
- run : npm run test:bin
You can’t perform that action at this time.
0 commit comments