Skip to content

Commit

Permalink
Merge pull request #361 from lo1tuma/c8
Browse files Browse the repository at this point in the history
Replace nyc with c8 for collecting coverage information
  • Loading branch information
lo1tuma authored Aug 22, 2024
2 parents fb69cb4 + 3a978f2 commit d634be5
Show file tree
Hide file tree
Showing 7 changed files with 241 additions and 1,172 deletions.
15 changes: 15 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"all": true,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"check-coverage": true,
"extension": [".js", ".mjs"],
"instrument": false,
"src": ".",
"reporter": ["lcov", "text-summary"],
"reportDir": "./target/coverage",
"tempDirectory": "./target/c8-temporary-output",
"exclude": ["target", "test", "benchmarks/", "eslint.config.mjs"]
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/lcov.info
path-to-lcov: ./target/coverage/lcov.info
parallel: true
coverage:
needs: build
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
node_modules
build/
target/
.idea/
*.log
.nyc_output/
2 changes: 0 additions & 2 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@
},
"excludes": [
"target/",
"build/",
"CHANGELOG.md",
"README.md",
"docs/rules/*.md",
".nyc_output/",
"**/node_modules",
"**/*-lock.json"
],
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import globals from 'globals';

export default [
{
ignores: ['target/**/*', 'build/**/*', '.nyc_output/**/*']
ignores: ['target/**/*']
},
{
files: ['**/*.js', '**/*.mjs'],
Expand Down
Loading

0 comments on commit d634be5

Please sign in to comment.