Skip to content

Commit d5b1313

Browse files
authored
Update tests.yml
1 parent 9cf3517 commit d5b1313

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- dev
7+
88
pull_request:
99
branches:
1010
- main
11-
- dev
11+
1212

1313
jobs:
1414
run-simulator-tests:
@@ -21,33 +21,11 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
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
3325

3426
- name: Install Dependencies
3527
run: npm install
3628

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
5030
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"

0 commit comments

Comments
 (0)