ci: add test status badge to README + job summary with coverage

Badge shows pass/fail in the repo. Job summary shows test counts
and coverage percentages in the GitHub Actions UI.
This commit is contained in:
you
2026-03-24 00:56:02 +00:00
parent 5b6a010da6
commit 97bb2a78c9
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -30,7 +30,12 @@ jobs:
run: npm run test:unit
- name: Integration tests + coverage
run: npx c8 --reporter=text-summary sh test-all.sh
run: |
npx c8 --reporter=text-summary --reporter=text sh test-all.sh 2>&1 | tee test-output.txt
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
grep -E 'passed|failed|Results|Statements|Branches|Functions|Lines' test-output.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
deploy:
needs: test