Skip to content

Commit

Permalink
ci: replace nyc with c8 to fix module coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 20, 2025
1 parent b15c6fe commit b263f52
Show file tree
Hide file tree
Showing 4 changed files with 449 additions and 847 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- run: npm run lint
- run: npm run docs:examples && npm run docs:api && ./docs/build-assets.sh
if: contains(github.event.pull_request.title, 'Release')
- run: docker compose up -d --wait
- run: npx nyc npm test
- run: npx nyc report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v4
- run: docker compose up -d --wait --quiet-pull
- run: npx c8 npm test
- run: npx c8 report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v5
with:
files: coverage.lcov
env:
Expand Down
18 changes: 3 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
node_modules
/test-results.xml
.tern-port
.tern-project
.dir-locals.el
/dist
/es
/docs/api.md
/docs/api/*
/docs/api
/docs/examples
/docs/public
/docs/docco.css
__pycache__
/.envrc
/yarn-error.log
.idea
/docker-compose.override.yml
/pnpm-debug.log
.vscode/
debug/
.vscode
/coverage
coverage.*
.nyc_output/
/coverage.lcov
/**/package-lock.json
/**/dist
/examples/**/artifacts
Expand Down
Loading

0 comments on commit b263f52

Please sign in to comment.