Skip to content

Commit 9316eb4

Browse files
authored
Merge pull request #20 from netlify/chore/improve-test-coverage
2 parents a6b3d14 + 4074f18 commit 9316eb4

File tree

3 files changed

+13
-48
lines changed

3 files changed

+13
-48
lines changed

.github/workflows/workflow.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ jobs:
2929
if: "${{ matrix.node-version == '14.x' }}"
3030
- name: Tests
3131
run: npm run test:ci
32-
- name: Codecov test coverage
33-
run: node ./bin/report_coverage.js "${{ matrix.os }}" "${{ matrix.node-version }}"
32+
- name: Get test coverage flags
33+
id: test-coverage-flags
34+
run: |-
35+
os=${{ matrix.os }}
36+
node=${{ matrix.node-version }}
37+
echo "::set-output name=os::${os/-latest/}"
38+
echo "::set-output name=node::node_${node//./}"
39+
shell: bash
40+
- uses: codecov/codecov-action@v1
41+
with:
42+
file: coverage/coverage-final.json
43+
flags: ${{ steps.test-coverage-flags.outputs.os }},${{ steps.test-coverage-flags.outputs.node }}

bin/report_coverage.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"bin"
1111
],
1212
"bin": {
13-
"run-e": "./bin/run_e.js",
14-
"report-coverage": "./bin/report_coverage.js"
13+
"run-e": "./bin/run_e.js"
1514
},
1615
"scripts": {
1716
"test": "run-s format test:dev",

0 commit comments

Comments
 (0)