Skip to content

Commit d57eb61

Browse files
committed
chore: enable coveralls reporting
1 parent 1944e88 commit d57eb61

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/check-test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,17 @@ jobs:
104104
- name: Run Tests
105105
run: npm run test-ci -- --stream
106106
shell: bash
107+
108+
- name: Report Coverage
109+
if: ${{ runner.os == 'Linux' }}
110+
run: |
111+
curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz -C /usr/local/bin
112+
coverage_reports=(ls packages/*/coverage/lcov.info)
113+
for report in "${coverage_reports[@]}"; do
114+
flag_name=$(sed -E 's/packages\/([^\/]*)\/coverage\/lcov.info/\1/g' <<< $report)
115+
coverage report --base-path . --job-flag=$flag_name $report
116+
done
117+
env:
118+
COVERALLS_GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
119+
COVERALLS_REPO_TOKEN: ${{ github.token }}
120+
COVERALLS_GIT_COMMIT: ${{ github.sha }}

0 commit comments

Comments
 (0)