@@ -15,22 +15,21 @@ jobs:
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- node-version : [^12.22, ^14.17, ^16.4, ^17 ]
18
+ node-version : [^12.22, ^14.17, ^16.4, ^18 ]
19
19
os : [ubuntu-latest, windows-latest]
20
20
steps :
21
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v3
22
22
- name : Enable symlinks
23
23
if : matrix.os == 'windows-latest'
24
24
run : |
25
25
git config core.symlinks true
26
26
git reset --hard
27
- - run : rm .npmrc
28
- - uses : actions/setup-node@v2
27
+ - uses : actions/setup-node@v3
29
28
with :
30
29
node-version : ${{ matrix.node-version }}
31
30
cache : npm
32
31
- name : Upgrade npm
33
- run : npm install --global npm@^8.1.2
32
+ run : npm install --global npm@^8.12
34
33
- run : npm install --no-audit
35
34
- run : npm run cover
36
35
- uses : codecov/codecov-action@v2
@@ -45,14 +44,13 @@ jobs:
45
44
matrix :
46
45
ts-version : [~4.4, ~4.5, ~4.6, ~4.7]
47
46
steps :
48
- - uses : actions/checkout@v2
49
- - run : rm .npmrc
50
- - uses : actions/setup-node@v2
47
+ - uses : actions/checkout@v3
48
+ - uses : actions/setup-node@v3
51
49
with :
52
- node-version : ^12.22
50
+ node-version : ^18
53
51
cache : npm
54
52
- name : Upgrade npm
55
- run : npm install --global npm@^8.1.2
53
+ run : npm install --global npm@^8.12
56
54
- run : npm install --no-audit
57
55
- run : npm i typescript@${TS_VERSION}
58
56
env :
@@ -65,15 +63,14 @@ jobs:
65
63
name : Test package-lock for unexpected modifications
66
64
runs-on : ubuntu-latest
67
65
steps :
68
- - uses : actions/checkout@v2
69
- - run : rm .npmrc
70
- - uses : actions/setup-node@v2
66
+ - uses : actions/checkout@v3
67
+ - uses : actions/setup-node@v3
71
68
with :
72
- node-version : ^12.22
69
+ node-version : ^18
73
70
cache : npm
74
71
- name : Upgrade npm
75
- run : if [[ "$(npm -v)" != "8.1.2 " ]]; then npm install --global npm@8.1.2 ; fi
76
- - run : npm install --no-audit --lockfile-version=3
72
+ run : if [[ "$(npm -v)" != "8.12.0 " ]]; then npm install --global npm@8.12.0 ; fi
73
+ - run : npm install --no-audit
77
74
- name : Test package-lock for unexpected modifications
78
75
run : |
79
76
npm -v
@@ -88,27 +85,25 @@ jobs:
88
85
name : Install dependencies without using a lockfile
89
86
runs-on : ubuntu-latest
90
87
steps :
91
- - uses : actions/checkout@v2
92
- - run : rm .npmrc
93
- - uses : actions/setup-node@v2
88
+ - uses : actions/checkout@v3
89
+ - uses : actions/setup-node@v3
94
90
with :
95
- node-version : ^12.22
91
+ node-version : ^18
96
92
- name : Upgrade npm
97
- run : npm install --global npm@^8.1.2
98
- - run : npm install --no-shrinkwrap --no-audit
93
+ run : npm install --global npm@^8.12
94
+ - run : npm install --no-package-lock --no-audit
99
95
- run : npm run cover
100
96
101
97
xo :
102
98
name : Lint source files
103
99
runs-on : ubuntu-latest
104
100
steps :
105
- - uses : actions/checkout@v2
106
- - run : rm .npmrc
107
- - uses : actions/setup-node@v2
101
+ - uses : actions/checkout@v3
102
+ - uses : actions/setup-node@v3
108
103
with :
109
- node-version : ^16.4
104
+ node-version : ^18
110
105
cache : npm
111
106
- name : Upgrade npm
112
- run : npm install --global npm@^8.1.2
107
+ run : npm install --global npm@^8.12
113
108
- run : npm install --no-audit
114
109
- run : npx xo
0 commit comments