File tree Expand file tree Collapse file tree 2 files changed +48
-9
lines changed Expand file tree Collapse file tree 2 files changed +48
-9
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - current
5
+ - next
6
+ - ' v*'
7
+ pull_request :
8
+
1
9
name : CI
2
- on : [push, pull_request]
3
10
4
11
jobs :
5
- build :
12
+ lint :
13
+ name : Lint
6
14
runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Setup node
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : v20.x
21
+ - name : Install dependencies
22
+ run : npm install
23
+ - name : Check linting
24
+ run : npm run lint:ci
25
+
26
+ tests :
27
+ needs : [lint]
28
+ name : Tests
7
29
strategy :
30
+ fail-fast : false
8
31
matrix :
9
- node : [16.x, 18.x, 20.x]
10
- name : Node ${{ matrix.node }}
32
+ os : [ubuntu-latest, macos-latest, windows-latest]
33
+ node-version : [18.x, 20.x, 21.x]
34
+ runs-on : ${{matrix.os}}
11
35
steps :
12
36
- uses : actions/checkout@v4
13
- - name : Setup node
37
+ with :
38
+ persist-credentials : false
39
+
40
+ - name : Use Node.js ${{ matrix.node-version }}
14
41
uses : actions/setup-node@v4
15
42
with :
16
- node-version : ${{ matrix.node }}
17
- - run : npm install
18
- - run : npm run test:ci
43
+ node-version : ${{ matrix.node-version }}
44
+
45
+ - uses : actions/cache@v3
46
+ id : check-cache
47
+ with :
48
+ path : ~/.npm
49
+ key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
50
+ restore-keys : |
51
+ ${{ runner.os }}-node-${{ matrix.node-version }}-
52
+
53
+ - name : Install Dependencies
54
+ run : npm install
55
+ - name : Run Tests
56
+ run : npm run test:ci
57
+
Original file line number Diff line number Diff line change 15
15
"release" : " npx standard-version"
16
16
},
17
17
"engines" : {
18
- "node" : " >=16 .x"
18
+ "node" : " >=18 .x"
19
19
},
20
20
"keywords" : [
21
21
" fastify" ,
You can’t perform that action at this time.
0 commit comments