Skip to content

Commit 183c810

Browse files
committed
Check node version before reporting coverage
1 parent 2ff441d commit 183c810

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version: [12, 14, 16]
18-
include:
19-
- node: 14
20-
reportCoverage: true
21-
2218
steps:
2319
- uses: actions/checkout@v2
2420
- name: Use Node.js ${{ matrix.node-version }}
@@ -32,12 +28,7 @@ jobs:
3228
npm run test
3329
npm run coverage
3430
- name: Publish to coveralls.io
35-
if: ${{ matrix.reportCoverage }}
36-
env:
37-
BLAH: ${{ matrix.reportCoverage }}
38-
run: echo Reporting coverage $BLAH
39-
- name: Publish to coveralls.io
40-
if: ${{ matrix.reportCoverage }}
31+
if: ${{ matrix.node == 14 }}
4132
uses: coverallsapp/[email protected]
4233
with:
4334
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)