Update GitHub Actions workflow for testing
Changed pull request trigger to pull_request_target and enabled coverage publishing.
This commit is contained in:
13
.github/workflows/tester.yml
vendored
13
.github/workflows/tester.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: "Testing Pull Request"
|
name: "Testing Pull Request"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
- "dev"
|
- "dev"
|
||||||
@@ -74,14 +74,5 @@ jobs:
|
|||||||
path: ./cobertura.xml
|
path: ./cobertura.xml
|
||||||
threshold: 80.123
|
threshold: 80.123
|
||||||
fail: true
|
fail: true
|
||||||
publish: false # here we prevent branch push, see issue #548
|
publish: true
|
||||||
coverage-summary-title: "Code Coverage Summary"
|
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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user