Skip to content

Commit 4d91ac7

Browse files
committed
updates
- Bump dependencies - Specify the tests on the command line (needed for node 22) - Continue to try all builds even if one of them fails - Test on Node 22
1 parent 217332a commit 4d91ac7

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: build
52

63
on:
@@ -9,19 +6,23 @@ on:
96
pull_request:
107
branches: [ main ]
118

9+
env:
10+
FORCE_COLOR: 2
11+
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515

1616
strategy:
17+
fail-fast: false
1718
matrix:
18-
node-version: [18, 20]
19+
node-version: ['18', '20', '22']
1920

2021
steps:
21-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2223
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2425
with:
2526
node-version: ${{ matrix.node-version }}
2627
- run: npm install
27-
- run: npm run test
28+
- run: npm run all

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
"build:cjs": "esbuild ./index.mjs --platform=node --format=cjs --sourcemap --outfile=./dist/index.cjs",
4545
"lint": "eslint index.mjs test/*.js",
4646
"test": "run-s build test:node",
47-
"test:node": "c8 node --test test/"
47+
"test:node": "c8 node --test test/*.js"
4848
},
4949
"devDependencies": {
5050
"c8": "^10.1.2",
51-
"esbuild": "^0.23.0",
52-
"eslint": "^9.7.0",
51+
"esbuild": "^0.23.1",
52+
"eslint": "^9.10.0",
5353
"npm-run-all": "^4.1.5",
5454
"shx": "^0.3.4"
5555
},

0 commit comments

Comments
 (0)