Skip to content

Commit

Permalink
Add pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed May 8, 2023
1 parent 7f2baf8 commit 505ff58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,15 @@ jobs:
- name: Running single site unit tests
if: ${{ ! matrix.multisite }}
run: npm run test:unit:php | tee phpunit.log
run: |
set -o pipefail
npm run test:unit:php | tee phpunit.log
- name: Running multisite unit tests
if: ${{ matrix.multisite }}
run: npm run test:unit:php:multisite | tee phpunit.log
run: |
set -o pipefail
npm run test:unit:php:multisite | tee phpunit.log
# Verifies that PHPUnit actually runs in the first place. We want visibility
# into issues which can cause it to fail silently, so we check the output
Expand Down

0 comments on commit 505ff58

Please sign in to comment.