Skip to content

Commit

Permalink
dont run coverage on node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Mar 15, 2023
1 parent f12d06b commit d7ea450
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run coverage-all
if: matrix.node-version == '16.x'
run: npm run test-unit
- name: Run tests
if: matrix.node-version != '16.x'
run: npm run coverage:ci
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"scripts": {
"test": "npm run test-unit && npm run lint",
"test-unit": "node --test test/unit",
"test-all": "node --test",
"test:reporters": "node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=@reporters/github --test-reporter-destination=stdout test/unit",
"coverage": "c8 --reporter=html --reporter=text --reporter=text-summary npm test",
"coverage-all": "c8 --reporter=lcov --reporter=text --reporter=text-summary npm run test-all",
"coverage:ci": "c8 --reporter=lcov --reporter=text --reporter=text-summary npm run test:reporters",
"lint": "eslint . --cache",
"lint-fix": "eslint . --fix"
},
Expand Down Expand Up @@ -55,6 +55,7 @@
"yargs": "^17.7.1"
},
"devDependencies": {
"@reporters/github": "^1.1.2",
"c8": "^7.13.0",
"eslint": "^8.35.0",
"eslint-config-standard": "^17.0.0",
Expand Down

0 comments on commit d7ea450

Please sign in to comment.