Skip to content

Conversation

@ibrahimcesar
Copy link
Owner

  • Created new workflow .github/workflows/test-badge.yml that:
    • Runs tests using Vitest with JSON reporter
    • Parses test results to extract passed/total counts
    • Generates a dynamic badge showing "x/total passing"
    • Commits badge data to .github/badges/tests.json
    • Color-codes badge based on pass rate (green for 100%, yellow for 60-80%, red for <60%)
  • Added test badge to README.md alongside other workflow badges
  • Badge uses shields.io endpoint to display live test status
  • Workflow runs on push to main, pull requests, and manual trigger

The badge will automatically update after each test run on the main branch.

- Created new workflow `.github/workflows/test-badge.yml` that:
  - Runs tests using Vitest with JSON reporter
  - Parses test results to extract passed/total counts
  - Generates a dynamic badge showing "x/total passing"
  - Commits badge data to `.github/badges/tests.json`
  - Color-codes badge based on pass rate (green for 100%, yellow for 60-80%, red for <60%)
- Added test badge to README.md alongside other workflow badges
- Badge uses shields.io endpoint to display live test status
- Workflow runs on push to main, pull requests, and manual trigger

The badge will automatically update after each test run on the main branch.
@ibrahimcesar ibrahimcesar merged commit c070b26 into main Nov 15, 2025
4 of 6 checks passed
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
ES Module 2.88 KB (0%)
CommonJS 2.84 KB (0%)
CSS 1.05 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants