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:
parent
a38760edb4
commit
4801a09a85
2 changed files with 11 additions and 1 deletions
8
.github/workflows/dev-checks.yml
vendored
8
.github/workflows/dev-checks.yml
vendored
|
|
@ -28,4 +28,10 @@ jobs:
|
||||||
- name: Run lint check
|
- name: Run lint check
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Run unit tests
|
- 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
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,10 @@ const config = {
|
||||||
testTimeout: 10000,
|
testTimeout: 10000,
|
||||||
fileParallelism: false,
|
fileParallelism: false,
|
||||||
},
|
},
|
||||||
|
reporters: ['default', 'junit'],
|
||||||
|
outputFile: {
|
||||||
|
junit: './coverage/junit.xml',
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
mainFields: ['module'],
|
mainFields: ['module'],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue