From 07dd73c00e8aa3c6ceb70a5d02a7a92d086c5790 Mon Sep 17 00:00:00 2001 From: camer0n Date: Sun, 13 Apr 2025 07:31:59 -0700 Subject: [PATCH] Fix attempt for user warnings. --- .github/workflows/test-unit.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 249eb3ebd..6adc958bf 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -142,21 +142,21 @@ jobs: working-directory: ./e107_tests/ continue-on-error: false - - name: Debug error reporting - run: php -r 'echo error_reporting();' - working-directory: ./e107_tests/ - - name: Run unit tests run: | if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ] then - php -d error_reporting="E_ALL & ~E_USER_WARNING" -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml + php -d error_reporting=32255 -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml else echo "Warning: xdebug not available; skipping coverage..." - php -d error_reporting="E_ALL & ~E_USER_WARNING" ./vendor/bin/codecept run unit --steps --debug + php -d error_reporting=32255 ./vendor/bin/codecept run unit --steps --debug fi working-directory: ./e107_tests/ + - name: Debug error reporting + run: php -r 'echo error_reporting();' + working-directory: ./e107_tests/ + - name: Send code coverage report to Code Climate run: | ./e107_tests/vendor/bin/cc-test-reporter format-coverage \