-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.27 KB
/
run-tests.yml
File metadata and controls
57 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Run Tests
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
run-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip-tests]')"
permissions:
contents: read
checks: write
strategy:
matrix:
node-version: [ 24.x, 25.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
continue-on-error: true
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-node-${{ matrix.node-version }}
path: tmp/test-results.xml
retention-days: 30
- name: Publish test report
if: always()
uses: mikepenz/action-junit-report@v5
with:
report_paths: tmp/test-results.xml
check_name: Unit Test Results (Node ${{ matrix.node-version }})
summary: true
detailed_summary: true
fail_on_failure: true