Skip to content

Commit

Permalink
pin nyc versions for node 8 & 9 and fix npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
carpasse committed Apr 9, 2024
1 parent 89b6101 commit 9d340db
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
name:
Expand Down Expand Up @@ -73,19 +73,19 @@ jobs:

- name: Node.js 6.x
node-version: "6.17"
npm-i: [email protected].2 [email protected]
npm-i: [email protected].3 [email protected]

- name: Node.js 7.x
node-version: "7.10"
npm-i: [email protected].2 [email protected]
npm-i: [email protected].3 [email protected]

- 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"
Expand All @@ -108,7 +108,7 @@ jobs:
node-version: "15.14"

- name: Node.js 16.x
node-version: "16.14"
node-version: "16.13"

- name: Node.js 17.x
node-version: "17.4"
Expand Down Expand Up @@ -139,7 +139,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 }}
Expand Down Expand Up @@ -190,7 +198,7 @@ jobs:
uses: coverallsapp/github-action@master
if: steps.list_env.outputs.nyc != ''
with:
github-token: ${{ secrets.github_token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.test_number }}
parallel: true

Expand All @@ -201,5 +209,5 @@ jobs:
- name: Upload code coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 9d340db

Please sign in to comment.