Skip to content

Commit 74b8362

Browse files
committed
update tests for github actions — wip
1 parent 7f0a663 commit 74b8362

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,26 @@ jobs:
8686
- name: Discover tests
8787
working-directory: vendor/typerocket/core
8888
run: |
89+
set -o pipefail
8990
pwd
91+
php -v
9092
test -f phpunit.xml
9193
test -x vendor/bin/phpunit
94+
php vendor/bin/phpunit --version 2>&1 | tee phpunit-version.log
9295
find tests -name '*Test.php' -print | sort
93-
vendor/bin/phpunit --configuration phpunit.xml --list-test-files
94-
vendor/bin/phpunit --configuration phpunit.xml --list-tests
96+
97+
php vendor/bin/phpunit --configuration phpunit.xml --list-test-files 2>&1 | tee phpunit-list-test-files.log
98+
test -s phpunit-list-test-files.log
99+
100+
php vendor/bin/phpunit --configuration phpunit.xml --list-tests 2>&1 | tee phpunit-list-tests.log
101+
test -s phpunit-list-tests.log
95102
env:
96103
HTTP_HOST: 127.0.0.1
97104

98105
- name: Run tests
99106
working-directory: vendor/typerocket/core
100107
run: |
101-
vendor/bin/phpunit --configuration phpunit.xml --debug --display-errors --display-warnings --display-deprecations --fail-on-empty-test-suite
108+
set -o pipefail
109+
php vendor/bin/phpunit --configuration phpunit.xml --debug --display-errors --display-warnings --display-deprecations --fail-on-empty-test-suite 2>&1 | tee phpunit-debug.log
102110
env:
103111
HTTP_HOST: 127.0.0.1

0 commit comments

Comments
 (0)