Skip to content

chore: enhance ci reports #3

chore: enhance ci reports

chore: enhance ci reports #3

Workflow file for this run

name: Comment PR Coverage
on:
pull_request:
branches:
- 'main'
permissions:
contents: read
pull-requests: write
jobs:
coverage_report:
name: Generate coverage report
needs: testing
runs-on: ubuntu-latest
strategy:
matrix:
node-version: 22.x

Check failure on line 17 in .github/workflows/pr-coverage.yml

View workflow run for this annotation

GitHub Actions / Comment PR Coverage

Invalid workflow file

The workflow is not valid. .github/workflows/pr-coverage.yml (Line: 17, Col: 23): Unexpected value '22.x'
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup LCOV
run: npm run lcov
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: coverage/lcov.*.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true