Skip to content

Commit

Permalink
build: update Node.js versions and pin dependencies (#22)
Browse files Browse the repository at this point in the history
* PR-URL: #22
* pin nyc version for node 8 & 9
* add missing node versions to ci action
  • Loading branch information
carpasse committed Apr 12, 2024
1 parent 6115a40 commit ad9bc23
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Expand Up @@ -10,7 +10,6 @@ jobs:
strategy:
matrix:
name:
- Node.js 0.6
- Node.js 0.8
- Node.js 0.10
- Node.js 0.12
Expand All @@ -33,6 +32,8 @@ jobs:
- 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
Expand Down Expand Up @@ -74,7 +75,7 @@ jobs:
npm-i: mocha@5.2.0 nyc@11.9.0

- name: Node.js 6.x
node-version: "6.16"
node-version: "6.17"
npm-i: mocha@6.2.3 nyc@14.1.1

- name: Node.js 7.x
Expand All @@ -83,11 +84,11 @@ jobs:

- name: Node.js 8.x
node-version: "8.17"
npm-i: mocha@7.2.0
npm-i: mocha@7.2.0 nyc@14.1.1

- name: Node.js 9.x
node-version: "9.11"
npm-i: mocha@7.2.0
npm-i: mocha@7.2.0 nyc@14.1.1

- name: Node.js 10.x
node-version: "10.24"
Expand All @@ -99,29 +100,33 @@ jobs:

- name: Node.js 12.x
node-version: "12.22"
npm-i: mocha@9.2.2

- name: Node.js 13.x
node-version: "13.14"
npm-i: mocha@9.2.2

- name: Node.js 14.x
node-version: "14.21"
node-version: "14.19"

- name: Node.js 15.x
node-version: "15.14"

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

- name: Node.js 17.x
node-version: "17.9"
node-version: "17.4"

- name: Node.js 18.x
node-version: "18.13"
node-version: "18.20"

- name: Node.js 19.x
node-version: "19.5"
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@v3
Expand Down Expand Up @@ -190,14 +195,13 @@ jobs:
echo "node@$(node -v)"
echo "npm@$(npm -v)"
npm -s ls ||:
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print $2 "=" $3 }' >> "$GITHUB_OUTPUT"
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }'
- name: Run tests
shell: bash
run: |
if npm -ps ls nyc | grep -q nyc; then
npm run test-ci
cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov"
else
npm test
fi
Expand Down

0 comments on commit ad9bc23

Please sign in to comment.