Add test coverage output and JUnit artifact upload to CI
This commit is contained in:
parent
29a2f5d032
commit
bb8862c605
|
|
@ -80,7 +80,7 @@ jobs:
|
|||
- run: npm run scan:todos
|
||||
|
||||
test:
|
||||
name: Test
|
||||
name: Test (coverage + timing)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -89,7 +89,13 @@ jobs:
|
|||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- run: npx vitest run --reporter=verbose --reporter=junit --outputFile.junit=test-results.xml
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: test-results
|
||||
path: test-results.xml
|
||||
retention-days: 30
|
||||
|
||||
docs:
|
||||
name: Docs Generation
|
||||
|
|
|
|||
Loading…
Reference in New Issue