Skip to content

Commit

Permalink
Fix PR commit status failing due to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Apr 28, 2024
1 parent 0423ac3 commit 036b504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v4
# Codecov merges results too early, which makes it not report Windows test coverage.
# This makes the PR commit status fail.
if: matrix.os == 'ubuntu' && matrix.node-version == 20
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: '${{ matrix.os }}, node-${{ matrix.node-version }}'
Expand Down
1 change: 1 addition & 0 deletions lib/arguments/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const normalizeOptions = (filePath, rawArguments, rawOptions) => {

if (process.platform === 'win32' && basename(file, '.exe') === 'cmd') {
// #116
/* c8 ignore next */
commandArguments.unshift('/q');
}

Expand Down

0 comments on commit 036b504

Please sign in to comment.