Skip to content

Commit 27fd1f9

Browse files
committed
Only run coverage in CI
1 parent 195ffe9 commit 27fd1f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
env:
3838
CI: true
3939
- run: npm run prepublishOnly
40-
- run: npm test
40+
- run: npm test -- --coverage
4141
env:
4242
CI: true
4343
- run: bash <(curl -s --retry 5 --retry-delay 2 --connect-timeout 2 https://codecov.io/bash)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"rebuild-fixtures": "npm run babelify && babel-node scripts/rebuildFixtures.js",
2424
"prepublishOnly": "npm run babelify && babel-node scripts/build.js",
2525
"style": "eslint .",
26-
"test": "jest && eslint .",
26+
"test": "jest",
27+
"posttest": "npm run style",
2728
"compat": "node scripts/compat.js --prepare",
2829
"compat:restore": "node scripts/compat.js --restore"
2930
},
@@ -96,7 +97,6 @@
9697
]
9798
},
9899
"jest": {
99-
"collectCoverage": true,
100100
"testTimeout": 30000,
101101
"setupFilesAfterEnv": [
102102
"<rootDir>/jest/customMatchers.js"

0 commit comments

Comments
 (0)