File tree 1 file changed +5
-27
lines changed
1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- - dev
7
+
8
8
pull_request :
9
9
branches :
10
10
- main
11
- - dev
11
+
12
12
13
13
jobs :
14
14
run-simulator-tests :
@@ -21,33 +21,11 @@ jobs:
21
21
- name : Setup Node.js
22
22
uses : actions/setup-node@v4
23
23
with :
24
- node-version : 18 # Node 22 is unstable, 18 or 20 recommended
25
-
26
- - name : Cache node_modules
27
- uses : actions/cache@v4
28
- with :
29
- path : node_modules
30
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31
- restore-keys : |
32
- ${{ runner.os }}-node-
24
+ node-version : 20.x
33
25
34
26
- name : Install Dependencies
35
27
run : npm install
36
28
37
- - name : Run Simulator Tests with JUnit Output
38
- run : |
39
- npm run test -- src/simulator/spec --reporter=junit --outputFile=./test-results/simulator-tests.xml
40
- continue-on-error : true
41
-
42
- - name : Upload Test Results
43
- uses : actions/upload-artifact@v4
44
- with :
45
- name : simulator-test-results
46
- path : ./test-results/simulator-tests.xml
47
- if-no-files-found : error
48
-
49
- - name : Display Test Summary (Optional)
29
+ - name : Run Simulator Tests
50
30
run : |
51
- if [ -f ./test-results/simulator-tests.xml ]; then
52
- cat ./test-results/simulator-tests.xml
53
- fi
31
+ npm run test -- src/simulator/spec || echo "Simulator tests failed"
You can’t perform that action at this time.
0 commit comments