File tree Expand file tree Collapse file tree 2 files changed +40
-9
lines changed Expand file tree Collapse file tree 2 files changed +40
-9
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,10 @@ updates:
6
6
interval : weekly
7
7
day : monday
8
8
time : " 06:00"
9
- reviewers :
10
- - cloudnode-pro/development
11
9
12
10
- package-ecosystem : github-actions
13
11
directory : /
14
12
schedule :
15
13
interval : weekly
16
14
day : monday
17
15
time : " 06:00"
18
- reviewers :
19
- - cloudnode-pro/development
Original file line number Diff line number Diff line change 19
19
- name : Setup Node.js
20
20
uses : actions/setup-node@v4
21
21
with :
22
- node-version : 20
22
+ node-version : 22
23
23
registry-url : https://registry.npmjs.org/
24
24
cache : npm
25
25
32
32
- name : Build
33
33
run : npm run build
34
34
35
- - name : Test
36
- run : npm run test
37
-
38
35
- name : Pack
39
36
run : npm pack
40
37
43
40
with :
44
41
name : package
45
42
path : cldn-ip-0.0.0-dev.tgz
43
+
44
+ test :
45
+ name : Test on Node.js ${{ matrix.node }}
46
+ runs-on : ubuntu-latest
47
+ needs : build
48
+ strategy :
49
+ fail-fast : false
50
+ matrix :
51
+ node : [20, 22, 24]
52
+ steps :
53
+ - name : Checkout repository
54
+ uses : actions/checkout@v4
55
+
56
+ - name : Setup Node.js
57
+ uses : actions/setup-node@v4
58
+ with :
59
+ node-version : ${{ matrix.node }}
60
+ registry-url : https://registry.npmjs.org/
61
+ cache : npm
62
+
63
+ - name : Install latest NPM
64
+ run : npm i -g npm@latest
65
+
66
+ - name : Install test dependencies
67
+ run : npm ci
68
+
69
+ - name : Download build artifact
70
+ uses : actions/download-artifact@v4
71
+ with :
72
+ name : package
73
+ path : .
74
+
75
+ - name : Extract build package
76
+ run : tar -xzf cldn-ip-0.0.0-dev.tgz --strip-components=1 -C . --overwrite
77
+
78
+ - name : Test
79
+ run : npm run test
80
+
46
81
publish :
47
82
name : Publish
48
83
needs : build
59
94
- name : Setup Node.js
60
95
uses : actions/setup-node@v4
61
96
with :
62
- node-version : 20
97
+ node-version : 22
63
98
registry-url : https://registry.npmjs.org/
64
99
cache : npm
65
100
You can’t perform that action at this time.
0 commit comments