Skip to content

Commit 2d3a49e

Browse files
committed
code-coverage: replace deprecated istanbul with nyc
1 parent 81ab066 commit 2d3a49e

6 files changed

Lines changed: 1155 additions & 226 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
@@ -26,12 +25,9 @@ jobs:
2625
node-version: ${{ matrix.node-version }}
2726
- run: npm version
2827
- run: npm ci || npm install
29-
- run: npm run build --if-present
28+
- run: npm run build
3029
- run: npm test
31-
- run: npx istanbul report text-summary lcov
32-
- id: extract_branch
33-
run: echo "::set-output name=branch::$(echo "$GITHUB_REF" | sed 's/refs\/heads\/\(.*\)/\1/' -)"
34-
- run: cat ./coverage/lcov.info | npx coveralls
30+
- run: npm run coverage
3531
env:
3632
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
3733
COVERALLS_SERVICE_NAME: "gh-actions"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ deploy.json
2020
*.log
2121

2222
coverage/
23+
.nyc_output/

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ npm-debug.log
1212
coffeelint.json
1313
.editorconfig
1414
coverage/
15+
.nyc_output/

.nycrc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
all: true
2+
exclude:
3+
- "_src/test/**/*"
4+
- "**/*.js"
5+
- "Gruntfile.coffee"
6+
extension:
7+
- ".coffee"

0 commit comments

Comments
 (0)