Skip to content

Commit

Permalink
Merge pull request #9 from silvermine/node-20
Browse files Browse the repository at this point in the history
build: update to node 20
  • Loading branch information
pbredenberg authored May 3, 2024
2 parents b897fe3 + 1aaaed4 commit b262b5c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,43 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history
-
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm i -g npm@8.5.5
- run: npm i -g npm@10.5.0
- run: npm ci
- run: npm run check-node-version
- run: npm run standards
test:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 12, 14, 16, 'lts/*', 'latest' ]
node-version: [ 16, 20, 'lts/*', 'latest' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g [email protected]
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm ci # Reinstall the dependencies to ensure they install with the node's version of npm
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@v1
with:
parallel: true
flag-name: ${{ matrix.node-version }}
finish:
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v1
with:
parallel-finished: true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.0
20.12.2
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "./types/index.d.ts",
"scripts": {
"commitlint": "commitlint --from 936a690",
"test": "check-node-version --npm 8.5.5 && ./node_modules/.bin/istanbul cover --root src --include-all-sources ./node_modules/.bin/_mocha -- -R spec 'tests/**/*.test.js'",
"check-node-version": "check-node-version --npm 10.5.0",
"test": "./node_modules/.bin/istanbul cover --root src --include-all-sources ./node_modules/.bin/_mocha -- -R spec 'tests/**/*.test.js'",
"eslint": "eslint .",
"markdownlint": "markdownlint -c .markdownlint.json '{,!(node_modules)/**/}*.md'",
"standards": "npm run commitlint && npm run markdownlint && npm run eslint"
Expand Down

0 comments on commit b262b5c

Please sign in to comment.