Skip to content

Commit

Permalink
Merge pull request #472 from UN-OCHA/OPS-10706-php-logs-in-tests
Browse files Browse the repository at this point in the history
chore: include php logs if tests fail
  • Loading branch information
lazysoundsystem authored Aug 28, 2024
2 parents 1b57c34 + 7855fb1 commit 35c9dd3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ jobs:
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

- name: PHP Logs
id: phplog
if: failure()
uses: cafuego/command-output@main
with:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal grep -i fatal /var/log/php/error.log
- name: DB Logs
id: dblog
if: failure()
Expand Down Expand Up @@ -266,6 +274,10 @@ jobs:
<code>${{ steps.dblog.outputs.stdout }}</code>
</details>
<details><summary>PHP Logs</summary>
<code>${{ steps.phplog.outputs.stdout }}</code>
</details>
*Pusher: @${{ github.actor }}, Action: `${{ github.event_name }}`, Workflow: `${{ github.workflow }}`*
edit-mode: replace

Expand Down

0 comments on commit 35c9dd3

Please sign in to comment.