Skip to content

Commit eada099

Browse files
ci: fix errors in ci github action for node 8 and 9 (#48)
* Update ci.yml * ci: add support for node@21 * ci: fix configure npm * ci: upgrade actions/checkout to v4 * ci: add support for node@22 --------- Co-authored-by: Wes Todd <[email protected]>
1 parent d51e533 commit eada099

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
- Node.js 15.x
3737
- Node.js 16.x
3838
- Node.js 17.x
39-
39+
- Node.js 18.x
40+
- Node.js 19.x
41+
- Node.js 20.x
42+
- Node.js 21.x
43+
- Node.js 22.x
44+
4045
include:
4146
- name: Node.js 0.8
4247
node-version: "0.8"
@@ -81,7 +86,7 @@ jobs:
8186

8287
- name: Node.js 8.x
8388
node-version: "8.16"
84-
89+
8590

8691
- name: Node.js 9.x
8792
node-version: "9.11"
@@ -115,8 +120,23 @@ jobs:
115120
- name: Node.js 17.x
116121
node-version: "17.9"
117122

123+
- name: Node.js 18.x
124+
node-version: "18.14"
125+
126+
- name: Node.js 19.x
127+
node-version: "19.6"
128+
129+
- name: Node.js 20.x
130+
node-version: "20.12"
131+
132+
- name: Node.js 21.x
133+
node-version: "21.7"
134+
135+
- name: Node.js 22.x
136+
node-version: "22.0"
137+
118138
steps:
119-
- uses: actions/checkout@v2
139+
- uses: actions/checkout@v4
120140

121141
- name: Install Node.js ${{ matrix.node-version }}
122142
shell: bash -eo pipefail -l {0}
@@ -131,7 +151,12 @@ jobs:
131151
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
132152
133153
- name: Configure npm
134-
run: npm config set shrinkwrap false
154+
run: |
155+
if [[ "$(npm config get package-lock)" == "true" ]]; then
156+
npm config set package-lock false
157+
else
158+
npm config set shrinkwrap false
159+
fi
135160
136161
- name: Remove npm module(s) ${{ matrix.npm-rm }}
137162
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
@@ -190,7 +215,7 @@ jobs:
190215
needs: test
191216
runs-on: ubuntu-latest
192217
steps:
193-
- name: Uploade code coverage
218+
- name: Upload code coverage
194219
uses: coverallsapp/github-action@master
195220
with:
196221
github-token: ${{ secrets.github_token }}

0 commit comments

Comments
 (0)