Skip to content

Commit

Permalink
Added a fix for the case of running the workflow file on a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbjensen committed Aug 16, 2023
1 parent efc9267 commit 523878b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -36,6 +36,8 @@ jobs:
- run: chmod +x ./cc-test-reporter
- run: ./cc-test-reporter before-build
- run: npm run cover
if: github.event_name != 'pull_request'
- run: npx nyc report --reporter=lcov
- run: node scripts/generateConfigFile.js
- run: ./cc-test-reporter after-build
if: github.event_name != 'pull_request'

0 comments on commit 523878b

Please sign in to comment.