-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update Node.js versions and pin dependencies (#31)
* PR: #31 * pin nyc versions for node 8 & 9 and fix npm config * add missing node versions to ci action * remove node version 0.6 from ci gh action. It won't build on ubuntu 20
- Loading branch information
Showing
1 changed file
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,10 @@ on: | |
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
name: | ||
- Node.js 0.6 | ||
- Node.js 0.8 | ||
- Node.js 0.10 | ||
- Node.js 0.12 | ||
|
@@ -31,13 +30,12 @@ jobs: | |
- Node.js 15.x | ||
- Node.js 16.x | ||
- Node.js 17.x | ||
- Node.js 18.x | ||
- Node.js 19.x | ||
- Node.js 20.x | ||
- Node.js 21.x | ||
|
||
include: | ||
- name: Node.js 0.6 | ||
node-version: "0.6" | ||
npm-i: [email protected] | ||
npm-rm: nyc | ||
|
||
- name: Node.js 0.8 | ||
node-version: "0.8" | ||
npm-i: [email protected] | ||
|
@@ -81,11 +79,11 @@ jobs: | |
|
||
- name: Node.js 8.x | ||
node-version: "8.17" | ||
npm-i: [email protected] | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 9.x | ||
node-version: "9.11" | ||
npm-i: [email protected] | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 10.x | ||
node-version: "10.24" | ||
|
@@ -113,6 +111,18 @@ jobs: | |
- name: Node.js 17.x | ||
node-version: "17.4" | ||
|
||
- name: Node.js 18.x | ||
node-version: "18.20" | ||
|
||
- name: Node.js 19.x | ||
node-version: "19.9" | ||
|
||
- name: Node.js 20.x | ||
node-version: "20.12" | ||
|
||
- name: Node.js 21.x | ||
node-version: "21.7" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -139,7 +149,15 @@ jobs: | |
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH" | ||
- name: Configure npm | ||
run: npm config set shrinkwrap false | ||
run: | | ||
if [[ "$(npm config get package-lock)" == "true" ]]; then | ||
npm config set package-lock false | ||
else | ||
npm config set shrinkwrap false | ||
fi | ||
- name: Remove non-test npm modules | ||
run: npm rm --silent --save-dev csv-parse raw-body stream-to-array | ||
|
||
- name: Remove npm module(s) ${{ matrix.npm-rm }} | ||
run: npm rm --silent --save-dev ${{ matrix.npm-rm }} | ||
|