Skip to content

Add a flag so that only classes for which coverage changed are listed #104

Add a flag so that only classes for which coverage changed are listed

Add a flag so that only classes for which coverage changed are listed #104

Workflow file for this run

name: 'ci'
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions: write-all
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run format:check >> "${GITHUB_STEP_SUMMARY}"
- run: npm run lint
- run: npm run test >> "${GITHUB_STEP_SUMMARY}"
- uses: ./
id: code_coverage_report_action
if: ${{ github.actor != 'dependabot[bot]'}}
with:
filename: 'coverage/clover.xml'
artifact_download_workflow_names: 'ci,cron'
badge: true
fail_on_negative_difference: true
overall_coverage_fail_threshold: 70
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: steps.code_coverage_report_action.outputs.file != '' && github.event_name == 'pull_request' && (success() || failure())
with:
recreate: true
path: code-coverage-results.md