Skip to content

Commit

Permalink
Merge pull request #982 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 262f1b0 + 71e85de commit 427350f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ jobs:
threshold_metric: "lines"
comment_footer: false

- 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 @@ -204,10 +212,15 @@ jobs:
<details><summary>Software Versions</summary>
<code>${{ steps.versions.outputs.stdout }}</code>
</details>
<details><summary>Drupal Logs</summary>
<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 427350f

Please sign in to comment.