Add README with coverage/complexity/duplication badges #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: coverage | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| id-token: write # OIDC → Worker | |
| checks: write # PR Check Run | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run coverage # writes coverage/lcov.info | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - run: pip install lizard | |
| - run: python -m lizard src --xml > lizard-report.xml | |
| - run: npx jscpd . --reporters json --output ./jscpd-report | |
| - uses: CoverageTracker/coverage-tracker/.github/actions/report@v0.2.0 | |
| with: | |
| worker-url: https://demo.coveragetracker.dev |