Skip to content

Commit

Permalink
Merge pull request #133 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 29, 2024
2 parents ae11200 + 7c4cf86 commit 282c494
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ jobs:
run: |
docker compose -f tests/docker-compose.yml exec -T drupal drush watchdog:show
- 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: Find Comment
uses: peter-evans/find-comment@v2
if: ${{ !env.ACT }}
Expand Down Expand Up @@ -207,6 +215,9 @@ jobs:
<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 282c494

Please sign in to comment.