Skip to content

Commit 2742b99

Browse files
committed
Add test results
1 parent 14919c9 commit 2742b99

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,11 @@ jobs:
2424
- run: npm ci
2525
- run: npm run lint
2626
- run: npm run format:check
27-
- run: npm run test
27+
- run: npm run test:ci
28+
- uses: dorny/test-reporter@v2
29+
if: ${{ !cancelled() }}
30+
with:
31+
name: Vitest Tests
32+
path: junit.xml
33+
reporter: jest-junit
2834
- run: npm run build --if-present

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
.idea/
44
coverage
55
mise.toml
6+
junit.xml

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build": "tsc && vite build",
1616
"preview": "vite preview",
1717
"test": "vitest",
18+
"test:ci": "vitest --run --reporter=junit --outputFile=junit.xml",
1819
"test:ui": "vitest --ui",
1920
"test:coverage": "vitest --coverage",
2021
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",

0 commit comments

Comments
 (0)