From 113ea38ea69cb72b4ad1d39c45b4145931837486 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Wed, 21 Jul 2021 11:15:07 +0300 Subject: [PATCH] Tweak error reporting level for test runs Running tests on PHP 7.4 throws deprecation notices --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3f0a41..5e5aa6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,11 @@ jobs: composer install $COMPOSER_FLAGS - name: Test - run: php -d xdebug.mode=coverage -d xdebug.overload_var_dump=0 vendor/bin/phpunit + run: | + php -d error_reporting=$(php -r 'echo E_ALL & ~ E_DEPRECATED & ~ E_NOTICE;') + -d xdebug.mode=coverage \ + -d xdebug.overload_var_dump=0 \ + vendor/bin/phpunit - name: Upload coverage results to Coveralls env: