Skip to content

Commit bf73289

Browse files
Print coverage
1 parent ec3070e commit bf73289

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
run: npm ci
1616
- name: Run Coverage
1717
run: (npm run coverage 2>&1) | tee /tmp/coverage.out | cat
18-
- name: Check coverage
19-
run: cat /tmp/coverage.out | grep "Global test coverage"
18+
- name: Extract coverage
19+
run: echo "COVERAGE=$(cat /tmp/coverage.out | grep "Global test coverage")" >> $GITHUB_ENV
20+
- name: Print coverage
21+
run: echo $COVERAGE
2022
- name: Create Check Run
2123
env:
2224
GH_TOKEN: ${{ github.token }}
23-
COVERAGE: 123
25+
COVERAGE: $COVERAGE
2426
run: |
2527
curl -L -X POST \
2628
-H "Accept: application/vnd.github+json" \

0 commit comments

Comments
 (0)