ci(test): enable the GitHub Actions reporter for Vitest (#15857)

* feat(ci): publish the JUnit report for human

* Grant permission to write check-results

* Use the GitHub action reporter from vitest
This commit is contained in:
Franklin Yu 2024-06-21 06:47:05 -07:00 committed by GitHub
parent 5c692db949
commit d99b18bd8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ on:
permissions:
contents: read
checks: write
jobs:
fix-pnpm-lock:
@ -68,7 +69,7 @@ jobs:
- name: Build routes
run: pnpm build
- name: Test all and generate coverage
run: pnpm run vitest:coverage
run: pnpm run vitest:coverage --reporter=github-actions
env:
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
- name: Upload coverage to Codecov