File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,35 @@ jobs:
1818 - uses : actions/checkout@v4
1919 - uses : actions/setup-node@v4
2020 with :
21- node-version : 18
21+ node-version : 24
2222 cache : npm
2323
2424 - run : npm ci
2525 - run : npm run check
2626 - run : npm run build
27+
28+ test :
29+ runs-on : ubuntu-latest
30+ strategy :
31+ fail-fast : false
32+ matrix :
33+ node-version : [18, 24]
34+
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : actions/setup-node@v4
38+ with :
39+ node-version : ${{ matrix.node-version }}
40+ cache : npm
41+
42+ - run : npm ci
2743 - run : npm test
2844
2945 publish :
3046 runs-on : ubuntu-latest
3147 if : github.event_name == 'release'
3248 environment : release
33- needs : build
49+ needs : [ build, test]
3450
3551 permissions :
3652 contents : read
4056 - uses : actions/checkout@v4
4157 - uses : actions/setup-node@v4
4258 with :
43- node-version : 18
59+ node-version : 24
4460 cache : npm
4561 registry-url : ' https://registry.npmjs.org'
4662
You can’t perform that action at this time.
0 commit comments