Skip to content

Commit

Permalink
use text reporter for nyc, min reporter for mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
kedashoe committed Nov 25, 2023
1 parent 3ea0b5c commit 9a9e860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@ jobs:
- name: Clean Install
run: npm ci

- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TOKEN }}
with:
coverageCommand: npm run coverage
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov
debug: true
- name: Coverage
run: npm run coverage

build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"partial-build": "node ./scripts/partialBuild",
"clean": "rimraf es/* src/* dist/* coverage/*",
"prepare": "npm run clean && npm run build",
"coverage": "BABEL_ENV=cjs nyc --reporter=lcov mocha -- --require @babel/register",
"coverage": "BABEL_ENV=cjs nyc --reporter=text-summary --reporter=text mocha -- --reporter=min --require @babel/register",
"lint": "eslint scripts/bookmarklet scripts/*.js source/*.js source/internal/*.js test/*.js test/**/*.js lib/sauce/*.js lib/bench/*.js",
"browser_test": "testem ci",
"spec": "cross-env BABEL_ENV=cjs mocha --require @babel/register --reporter spec",
Expand Down

0 comments on commit 9a9e860

Please sign in to comment.