This commit is contained in:
Jonas 2024-09-16 20:14:31 +02:00
parent 9e5c2f7842
commit 39622c8dfc
Signed by: lubiana
SSH key fingerprint: SHA256:gkqM8DUX4Blf6P52fycW8ISTd+4eAHH+Uzu9iyc8hAM
2 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,16 @@ jobs:
run: composer lint
- name: test
run: composer mutation
- name output
- name: Add comment to pull request
run: |
cat var/log/infection.txt >> /tmp/pull-request-comment
cat var/log/summary.log >> /tmp/pull-request-comment
curl -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"body": "$(cat /tmp/pull-request-comment)"}' \
"${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/issues/${GITHUB_EVENT_PULL_REQUEST_NUMBER}/comments"
- name: GIT commit and push all changed files
env:
CI_COMMIT_MESSAGE: Continuous Integration Fixes

View file

@ -5,6 +5,10 @@
"src"
]
},
'logs': {
"text": "var/log/infection.txt",
"summary": "var/log/summary.log",
},
"mutators": {
"@default": true,
"global-ignore": [