Skip to content

Add README with coverage/complexity/duplication badges #2

Add README with coverage/complexity/duplication badges

Add README with coverage/complexity/duplication badges #2

Workflow file for this run

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