Update GitHub Actions workflow for testing

Changed pull request trigger to pull_request_target and enabled coverage publishing.
This commit is contained in:
Nicola Demo
2025-10-13 12:34:15 +02:00
committed by GitHub
parent 9e7cae668d
commit 9d465fc667

View File

@@ -1,7 +1,7 @@
name: "Testing Pull Request"
on:
pull_request:
pull_request_target:
branches:
- "master"
- "dev"
@@ -74,14 +74,5 @@ jobs:
path: ./cobertura.xml
threshold: 80.123
fail: true
publish: false # here we prevent branch push, see issue #548
publish: true
coverage-summary-title: "Code Coverage Summary"
# post the summary as a PR comment, see issue #548
- name: Comment PR with coverage
uses: marocchino/sticky-pull-request-comment@v2
with:
header: coverage-report
message: |
### Code Coverage Report
${{ steps.coverage.outputs.summary }}