1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Unit test workflow

This commit is contained in:
camer0n 2025-04-13 08:11:49 -07:00
parent 49716ab3e0
commit 306c3790e5

View File

@ -146,17 +146,13 @@ jobs:
run: |
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
then
php -d error_reporting=32255 -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml
php -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml #--coverage-html
else
echo "Warning: xdebug not available; skipping coverage..."
php -d error_reporting=32255 ./vendor/bin/codecept run unit --steps --debug
php ./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 \