Skip to content

Commit

Permalink
Only run coverage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Nov 19, 2020
1 parent 195ffe9 commit 27fd1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
env:
CI: true
- run: npm run prepublishOnly
- run: npm test
- run: npm test -- --coverage
env:
CI: true
- run: bash <(curl -s --retry 5 --retry-delay 2 --connect-timeout 2 https://codecov.io/bash)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"rebuild-fixtures": "npm run babelify && babel-node scripts/rebuildFixtures.js",
"prepublishOnly": "npm run babelify && babel-node scripts/build.js",
"style": "eslint .",
"test": "jest && eslint .",
"test": "jest",
"posttest": "npm run style",
"compat": "node scripts/compat.js --prepare",
"compat:restore": "node scripts/compat.js --restore"
},
Expand Down Expand Up @@ -96,7 +97,6 @@
]
},
"jest": {
"collectCoverage": true,
"testTimeout": 30000,
"setupFilesAfterEnv": [
"<rootDir>/jest/customMatchers.js"
Expand Down

0 comments on commit 27fd1f9

Please sign in to comment.