File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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
-
4
1
name : build
5
2
6
3
on :
9
6
pull_request :
10
7
branches : [ main ]
11
8
9
+ env :
10
+ FORCE_COLOR : 2
11
+
12
12
jobs :
13
13
build :
14
14
runs-on : ubuntu-latest
15
15
16
16
strategy :
17
+ fail-fast : false
17
18
matrix :
18
- node-version : [18, 20 ]
19
+ node-version : ['18', '20', '22' ]
19
20
20
21
steps :
21
- - uses : actions/checkout@v3
22
+ - uses : actions/checkout@v4
22
23
- name : Use Node.js ${{ matrix.node-version }}
23
- uses : actions/setup-node@v3
24
+ uses : actions/setup-node@v4
24
25
with :
25
26
node-version : ${{ matrix.node-version }}
26
27
- run : npm install
27
- - run : npm run test
28
+ - run : npm run all
Original file line number Diff line number Diff line change 44
44
"build:cjs" : " esbuild ./index.mjs --platform=node --format=cjs --sourcemap --outfile=./dist/index.cjs" ,
45
45
"lint" : " eslint index.mjs test/*.js" ,
46
46
"test" : " run-s build test:node" ,
47
- "test:node" : " c8 node --test test/"
47
+ "test:node" : " c8 node --test test/*.js "
48
48
},
49
49
"devDependencies" : {
50
50
"c8" : " ^10.1.2" ,
51
- "esbuild" : " ^0.23.0 " ,
52
- "eslint" : " ^9.7 .0" ,
51
+ "esbuild" : " ^0.23.1 " ,
52
+ "eslint" : " ^9.10 .0" ,
53
53
"npm-run-all" : " ^4.1.5" ,
54
54
"shx" : " ^0.3.4"
55
55
},
You can’t perform that action at this time.
0 commit comments