From 97bb2a78c911ac0b962b0c9d4146799bbbc82a04 Mon Sep 17 00:00:00 2001 From: you Date: Tue, 24 Mar 2026 00:56:02 +0000 Subject: [PATCH] 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. --- .github/workflows/deploy.yml | 7 ++++++- README.md | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ce1815a8..d24fba4b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/README.md b/README.md index 6f62ae33..1cc07d0d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MeshCore Analyzer +[![Tests](https://github.com/Kpa-clawbot/meshcore-analyzer/actions/workflows/deploy.yml/badge.svg)](https://github.com/Kpa-clawbot/meshcore-analyzer/actions/workflows/deploy.yml) + > Self-hosted, open-source MeshCore packet analyzer — a community alternative to the closed-source `analyzer.letsmesh.net`. Collects MeshCore packets via MQTT, decodes them, and presents a full web UI with live packet feed, node map, channel chat, packet tracing, per-node analytics, and more.