Skip to content

Commit

Permalink
fix: updated coverage workflow (see codecov/feedback#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcpesses committed Feb 22, 2024
1 parent 581de2a commit 58298e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
path: ./coverage/coverage-final.json

coverage:
name: Coverage Analysis
Expand All @@ -61,11 +61,16 @@ jobs:
with:
name: coverage

- name: Workaround for codecov/feedback#263
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: 📈 Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
verbose: true
files: ./coverage-final.json,./coverage/coverage-final.json

deploy:
name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineConfig({
coverage: {
enabled: true,
provider: 'c8',
reporter: ['html', 'lcovonly', 'text', 'text-summary'],
reporter: ['html', 'lcovonly', 'json', 'text', 'text-summary'],
},
css: {
modules: {
Expand Down

0 comments on commit 58298e2

Please sign in to comment.