File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,25 @@ concurrency:
18
18
cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
19
19
20
20
env :
21
- NODE_VERSION : 18
21
+ NODE_VERSION : 24
22
22
CACHE_KEY : " ${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}"
23
23
24
24
jobs :
25
25
build :
26
26
name : Build Package
27
27
runs-on : ubuntu-latest
28
28
29
+ strategy :
30
+ matrix :
31
+ node-version : ['20', '22', '24']
32
+
29
33
steps :
30
34
- name : Checkout code
31
35
uses : actions/checkout@v4
32
36
33
37
- uses : ./.github/actions/build
34
38
with :
35
- node : ${{ env.NODE_VERSION }}
39
+ node : ${{ matrix.node-version }}
36
40
37
41
- name : Save build artifacts
38
42
uses : actions/cache/save@v4
@@ -46,12 +50,16 @@ jobs:
46
50
name : Run Unit Tests
47
51
runs-on : ubuntu-latest
48
52
53
+ strategy :
54
+ matrix :
55
+ node-version : ['20', '22', '24']
56
+
49
57
steps :
50
58
- uses : actions/checkout@v4
51
59
52
60
- uses : actions/setup-node@v4
53
61
with :
54
- node-version : ${{ env.NODE_VERSION }}
62
+ node-version : ${{ matrix.node-version }}
55
63
cache : npm
56
64
57
65
- uses : actions/cache/restore@v4
You can’t perform that action at this time.
0 commit comments