@@ -39,60 +39,14 @@ jobs:
39
39
node-version : 20.x
40
40
check-latest : contains('20.x', '.x')
41
41
cache : npm
42
-
43
- # node 10/12/14 ship with npm@6, which is known to fail when updating itself in windows
44
- - name : Update Windows npm
45
- if : |
46
- matrix.platform.os == 'windows-latest' && (
47
- startsWith(steps.node.outputs.node-version, 'v10.') || startsWith(steps.node.outputs.node-version, 'v12.') || startsWith(steps.node.outputs.node-version, 'v14.')
48
- )
49
- run : |
50
- curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
51
- tar xf npm-7.5.4.tgz
52
- cd package
53
- node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
54
- cd ..
55
- rmdir /s /q package
56
-
57
- # Start on Node 10 because we dont test on anything lower
58
- - name : Install npm@7 on Node 10
59
- shell : bash
60
- if : startsWith(steps.node.outputs.node-version, 'v10.')
61
- id : npm-7
62
- run : |
63
- npm i --prefer-online --no-fund --no-audit -g npm@7
64
- echo "updated=true" >> "$GITHUB_OUTPUT"
65
-
66
- - name : Install npm@8 on Node 12
67
- shell : bash
68
- if : startsWith(steps.node.outputs.node-version, 'v12.')
69
- id : npm-8
70
- run : |
71
- npm i --prefer-online --no-fund --no-audit -g npm@8
72
- echo "updated=true" >> "$GITHUB_OUTPUT"
73
-
74
- - name : Install npm@9 on Node 14/16/18.0
75
- shell : bash
76
- if : startsWith(steps.node.outputs.node-version, 'v14.') || startsWith(steps.node.outputs.node-version, 'v16.') || startsWith(steps.node.outputs.node-version, 'v18.0.')
77
- id : npm-9
78
- run : |
79
- npm i --prefer-online --no-fund --no-audit -g npm@9
80
- echo "updated=true" >> "$GITHUB_OUTPUT"
81
-
82
- - name : Install npm@latest on Node
83
- if : ${{ !(steps.npm-7.outputs.updated || steps.npm-8.outputs.updated || steps.npm-9.outputs.updated) }}
84
- run : npm i --prefer-online --no-fund --no-audit -g npm@latest
85
-
86
- - name : npm Version
87
- run : npm -v
88
42
- name : Check Git Status
89
43
run : node scripts/git-dirty.js
90
44
- name : Reset Deps
91
45
run : node scripts/resetdeps.js
92
46
- name : Lint
93
- run : npm run lint --ignore-scripts -w libnpmfund
47
+ run : node . run lint --ignore-scripts -w libnpmfund
94
48
- name : Post Lint
95
- run : npm run postlint --ignore-scripts -w libnpmfund
49
+ run : node . run postlint --ignore-scripts -w libnpmfund
96
50
97
51
test :
98
52
name : Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -134,59 +88,13 @@ jobs:
134
88
node-version : ${{ matrix.node-version }}
135
89
check-latest : contains(matrix.node-version, '.x')
136
90
cache : npm
137
-
138
- # node 10/12/14 ship with npm@6, which is known to fail when updating itself in windows
139
- - name : Update Windows npm
140
- if : |
141
- matrix.platform.os == 'windows-latest' && (
142
- startsWith(steps.node.outputs.node-version, 'v10.') || startsWith(steps.node.outputs.node-version, 'v12.') || startsWith(steps.node.outputs.node-version, 'v14.')
143
- )
144
- run : |
145
- curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
146
- tar xf npm-7.5.4.tgz
147
- cd package
148
- node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
149
- cd ..
150
- rmdir /s /q package
151
-
152
- # Start on Node 10 because we dont test on anything lower
153
- - name : Install npm@7 on Node 10
154
- shell : bash
155
- if : startsWith(steps.node.outputs.node-version, 'v10.')
156
- id : npm-7
157
- run : |
158
- npm i --prefer-online --no-fund --no-audit -g npm@7
159
- echo "updated=true" >> "$GITHUB_OUTPUT"
160
-
161
- - name : Install npm@8 on Node 12
162
- shell : bash
163
- if : startsWith(steps.node.outputs.node-version, 'v12.')
164
- id : npm-8
165
- run : |
166
- npm i --prefer-online --no-fund --no-audit -g npm@8
167
- echo "updated=true" >> "$GITHUB_OUTPUT"
168
-
169
- - name : Install npm@9 on Node 14/16/18.0
170
- shell : bash
171
- if : startsWith(steps.node.outputs.node-version, 'v14.') || startsWith(steps.node.outputs.node-version, 'v16.') || startsWith(steps.node.outputs.node-version, 'v18.0.')
172
- id : npm-9
173
- run : |
174
- npm i --prefer-online --no-fund --no-audit -g npm@9
175
- echo "updated=true" >> "$GITHUB_OUTPUT"
176
-
177
- - name : Install npm@latest on Node
178
- if : ${{ !(steps.npm-7.outputs.updated || steps.npm-8.outputs.updated || steps.npm-9.outputs.updated) }}
179
- run : npm i --prefer-online --no-fund --no-audit -g npm@latest
180
-
181
- - name : npm Version
182
- run : npm -v
183
91
- name : Check Git Status
184
92
run : node scripts/git-dirty.js
185
93
- name : Reset Deps
186
94
run : node scripts/resetdeps.js
187
95
- name : Add Problem Matcher
188
96
run : echo "::add-matcher::.github/matchers/tap.json"
189
97
- name : Test
190
- run : npm test --ignore-scripts -w libnpmfund
98
+ run : node . test --ignore-scripts -w libnpmfund
191
99
- name : Check Git Status
192
100
run : node scripts/git-dirty.js
0 commit comments