codecov: enable codecov in our repo

this commit add the configuration for codecov,
to be able to see the coverage of vitest in codecov website.
This commit is contained in:
Michal Gold 2024-08-29 22:01:14 +03:00 committed by Klara Simickova
parent a38760edb4
commit 4801a09a85
2 changed files with 11 additions and 1 deletions

View file

@ -28,4 +28,10 @@ jobs:
- name: Run lint check
run: npm run lint
- name: Run unit tests
run: npm run test
run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/junit.xml
verbose: true