File tree 2 files changed +43
-8
lines changed 2 files changed +43
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, workflow_dispatch]
3
3
jobs :
4
- test :
5
- name : Test with Node.js v${{ matrix.node }} and ${{ matrix.os }}
6
- runs-on : ${{ matrix.os }}
4
+ prettier :
5
+ name : Prettier
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v4
9
+ - uses : actions/setup-node@v4
10
+ with :
11
+ node-version : latest
12
+ - run : npm install
13
+ - run : node --run prettier
14
+ eslint :
15
+ name : ESLint
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-node@v4
20
+ with :
21
+ node-version : latest
22
+ - run : npm install
23
+ - run : node --run eslint
24
+ types :
25
+ name : Types
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : actions/setup-node@v4
30
+ with :
31
+ node-version : latest
32
+ - run : npm install
33
+ - run : node --run types
34
+ tests :
35
+ name : Tests
7
36
strategy :
8
37
matrix :
9
38
os : [ubuntu-latest, macos-latest]
10
- node : ["18", "20", "22"]
39
+ node : [18, 20, 22]
40
+ runs-on : ${{ matrix.os }}
11
41
steps :
12
42
- uses : actions/checkout@v4
13
- - name : Setup Node.js v${{ matrix.node }}
14
- uses : actions/setup-node@v4
43
+ - uses : actions/setup-node@v4
15
44
with :
16
45
node-version : ${{ matrix.node }}
17
- - name : npm install and test
18
- run : npm install-test
46
+ - run : npm install
47
+ - run : npm run tests
48
+ if : matrix.node < 22
49
+ - run : node --run tests
50
+ if : matrix.node >= 22
Original file line number Diff line number Diff line change 42
42
- Updated GitHub Actions CI config:
43
43
- No longer run the workflow on pull request.
44
44
- Enable manual workflow dispatching.
45
+ - Run checks in seperate jobs.
46
+ - Removed custom step names.
47
+ - Replaced ` npm run ` with ` node --run ` .
45
48
- Updated the tested Node.js versions to v18, v20, v22.
46
49
- Updated ` actions/checkout ` to v4.
47
50
- Updated ` actions/setup-node ` to v4.
You can’t perform that action at this time.
0 commit comments