Skip to content
Compare
Choose a tag to compare
@fritx fritx released this 21 Oct 15:25
· 7 commits to main since this release
# .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: