File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Simulator Tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - dev
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ - dev
12
+
13
+ jobs :
14
+ run-simulator-tests :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout Repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Setup Node.js
22
+ uses : actions/setup-node@v4
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-
33
+
34
+ - name : Install Dependencies
35
+ run : npm install
36
+
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)
50
+ run : |
51
+ if [ -f ./test-results/simulator-tests.xml ]; then
52
+ cat ./test-results/simulator-tests.xml
53
+ fi
You can’t perform that action at this time.
0 commit comments