15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- node-version : [^12.22, ^ 14.17, ^16.4, ^17]
18
+ node-version : [^14.17, ^16.4, ^17]
19
19
os : [ubuntu-latest, windows-latest]
20
20
steps :
21
21
- uses : actions/checkout@v2
@@ -24,49 +24,24 @@ jobs:
24
24
run : |
25
25
git config core.symlinks true
26
26
git reset --hard
27
- - run : rm .npmrc
28
27
- uses : actions/setup-node@v2
29
28
with :
30
29
node-version : ${{ matrix.node-version }}
31
30
cache : npm
32
31
- name : Upgrade npm
33
32
run : npm install --global npm@^8.1.2
34
- - run : npm install --no-audit
33
+ - run : npm ci --no-audit
35
34
- run : npm run test
36
35
name : ${{ matrix.os }}/${{ matrix.node-version }}
37
36
38
- typescript :
39
- name : TypeScript compatibility
40
- runs-on : ubuntu-latest
41
- strategy :
42
- matrix :
43
- ts-version : [~4.4, ~4.5]
44
- steps :
45
- - uses : actions/checkout@v2
46
- - run : rm .npmrc
47
- - uses : actions/setup-node@v2
48
- with :
49
- node-version : ^12.22
50
- cache : npm
51
- - name : Upgrade npm
52
- run : npm install --global npm@^8.1.2
53
- - run : npm install --no-audit
54
- - run : npm i typescript@${TS_VERSION}
55
- env :
56
- TS_VERSION : ${{ matrix.ts-version }}
57
- - run : npm ls typescript
58
- continue-on-error : true
59
- - run : npx tsd
60
-
61
37
lockfile_churn :
62
38
name : Test package-lock for unexpected modifications
63
39
runs-on : ubuntu-latest
64
40
steps :
65
41
- uses : actions/checkout@v2
66
- - run : rm .npmrc
67
42
- uses : actions/setup-node@v2
68
43
with :
69
- node-version : ^12.22
44
+ node-version : ^16.4
70
45
cache : npm
71
46
- name : Upgrade npm
72
47
run : if [[ "$(npm -v)" != "8.1.2" ]]; then npm install --global npm@8.1.2; fi
@@ -86,26 +61,23 @@ jobs:
86
61
runs-on : ubuntu-latest
87
62
steps :
88
63
- uses : actions/checkout@v2
89
- - run : rm .npmrc
90
64
- uses : actions/setup-node@v2
91
65
with :
92
- node-version : ^12.22
66
+ node-version : ^16.4
93
67
- name : Upgrade npm
94
68
run : npm install --global npm@^8.1.2
95
69
- run : npm install --no-shrinkwrap --no-audit
96
- - run : npm run cover
97
70
98
71
linting :
99
72
name : Lint source files
100
73
runs-on : ubuntu-latest
101
74
steps :
102
75
- uses : actions/checkout@v2
103
- - run : rm .npmrc
104
76
- uses : actions/setup-node@v2
105
77
with :
106
78
node-version : ^16.4
107
79
cache : npm
108
80
- name : Upgrade npm
109
81
run : npm install --global npm@^8.1.2
110
- - run : npm install --no-audit
82
+ - run : npm ci --no-audit
111
83
- run : npm run lint
0 commit comments