Skip to content

Commit 37b6e41

Browse files
committed
update build
1 parent 3fccdb9 commit 37b6e41

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/nodejs.yml

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Node.js CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: '**'
6+
tags-ignore: '**'
7+
pull_request:
8+
branches: '**'
49

510
jobs:
611

@@ -14,11 +19,31 @@ jobs:
1419
- uses: actions/checkout@v4
1520
- uses: actions/setup-node@v4
1621
with:
17-
node-version: ^20.8
22+
node-version: '22'
1823
- run: |
1924
npm install
2025
npm run lint
2126
27+
test-eslint-8:
28+
29+
name: test (Node.js ${{ matrix.node-version }})
30+
31+
runs-on: ubuntu-latest
32+
33+
strategy:
34+
matrix:
35+
node-version: ['12.22.0', '12', '14', '16']
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
- run: |
43+
npm install
44+
npm install eslint@8 eslint-plugin-cypress@2
45+
npm test
46+
2247
test:
2348

2449
name: Test (Node.js ${{ matrix.node-version }})
@@ -27,7 +52,7 @@ jobs:
2752

2853
strategy:
2954
matrix:
30-
node-version: ['12.22.0', '12', '14.17.0', '14', '16.0.0', '16', '18', '20', '21']
55+
node-version: ['18.18.0', '18', '20', '21', '22']
3156

3257
steps:
3358
- uses: actions/checkout@v4

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@origin-1/eslint-config": "latest",
2828
"c8js": "latest",
2929
"eslint": "latest",
30+
"eslint-formatter-compact": "latest",
3031
"eslint-plugin-cypress": "latest",
3132
"globals": "latest",
3233
"mocha": "9"

0 commit comments

Comments
 (0)