Skip to content

Commit 721a57b

Browse files
committed
Do not run test coverage on windows
Fails with Path contains invalid characters: D:\a\npm-publish\npm-publish\coverage\lcov-report\webpack:\@jsdevtools\npm-publish\src
1 parent f2c1984 commit 721a57b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,15 @@ jobs:
5050
run: npm run build
5151

5252
- name: Run tests
53+
if: ${{ !startsWith(matrix.os, 'windows') }}
5354
run: npm run coverage
5455

56+
- name: Run tests without coverage
57+
if: ${{ startsWith(matrix.os, 'windows') }}
58+
run: npm test
59+
5560
- name: Send code coverage results to Coveralls
61+
if: ${{ !startsWith(matrix.os, 'windows') }}
5662
uses: coverallsapp/[email protected]
5763
with:
5864
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)