Skip to content

Releases: we-cli/coverage-badge-action

v1.0.1

21 Oct 15:25
Compare
Choose a tag to compare
# .github/workflows/test.yml
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      # Your original steps
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
      - name: Install
        run: npm install
      - name: Test and Coverage
        run: npm run test:cov  # or npm run coverage

      # Add this
+     - name: Update Coverage Badge
+       uses: we-cli/coverage-badge-action@main

and this:

<!-- README.md -->
+ [![cov](https://we-cli.github.io/jayin/badges/coverage.svg)](https://github.com/we-cli/jayin/actions)

and you get: