Update measure_coverage.yml

This commit is contained in:
Ludy87 2025-08-10 00:15:19 +02:00
parent 63db6699d5
commit 722795b9c9
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -1,7 +1,20 @@
name: Measure coverage
on:
pull_request_target:
pull_request:
types: [opened, synchronize, reopened]
# cancel in-progress jobs if a new job is triggered
# This is useful to avoid running multiple builds for the same branch if a new commit is pushed
# or a pull request is updated.
# It helps to save resources and time by ensuring that only the latest commit is built and tested
# This is particularly useful for long-running jobs that may take a while to complete.
# The `group` is set to a combination of the workflow name, event name, and branch name.
# This ensures that jobs are grouped by the workflow and branch, allowing for cancellation of
# in-progress jobs when a new commit is pushed to the same branch or a new pull request is opened.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref_name || github.ref }}
cancel-in-progress: true
permissions:
contents: read
@ -55,4 +68,5 @@ jobs:
${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 10
min-coverage-changed-files: 0
min-coverage-changed-files: 0
comment-type: summary