File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
+ push :
5
+ branches : [master]
4
6
pull_request :
5
7
branches : [master]
6
8
7
- # This workflow contains a single job called "npm_test"
8
9
jobs :
9
- npm_test :
10
- # The type of runner that the job will run on
10
+ node_matrix_tests :
11
11
runs-on : ubuntu-latest
12
-
13
- # Steps represent a sequence of tasks that will be executed as part of the job
12
+ strategy :
13
+ matrix :
14
+ node-version : [20, 22, 24]
14
15
steps :
15
- # Checks-out your repository under $GITHUB_WORKSPACE
16
16
- uses : actions/checkout@v3
17
17
- uses : actions/setup-node@v3
18
18
with :
19
- node-version : ' ^18.x'
20
-
19
+ node-version : ${{ matrix.node-version }}
21
20
- name : Install Monorepo Deps
22
- run : npm i
23
-
21
+ run : npm ci
24
22
- name : Run Test Cases
25
23
run : npm run test --workspaces --if-present
26
-
27
24
- name : Run Lint Checks
28
- run : npm run lint --workspaces --if-present
25
+ run : npm run lint --workspaces --if-present
26
+
27
+ npm_test :
28
+ runs-on : ubuntu-latest
29
+ needs : node_matrix_tests
30
+ if : success()
31
+ steps :
32
+ - name : Final status
33
+ run : echo "✅ All tests passed for Node.js 20, 22, and 24"
You can’t perform that action at this time.
0 commit comments