diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 8a1da799fb..932e132f52 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -22,15 +22,13 @@ jobs: type: 'CodingStyle' - php: 'latest' type: 'StaticAnalysis' - env: - LOG_COVERAGE: "" steps: - name: Checkout uses: actions/checkout@v2 - name: Configure PHP run: | - if [ -n "$LOG_COVERAGE" ]; then echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; else rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; fi + rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini php --version - name: Setup cache 1/2 @@ -56,19 +54,11 @@ jobs: - name: Init run: | mkdir -p build/logs - php demos/_demo-data/create-db.php - name: "Run tests: SQLite (only for Phpunit)" - if: matrix.type == 'Phpunit' + if: startsWith(matrix.type, 'Phpunit') run: | - if [ -n "$LOG_COVERAGE" ]; then - cp tools/CoverageUtil.php demos - mkdir coverage - vendor/bin/phpunit --exclude-group none --coverage-text -v - ls -l coverage | wc -l && mv coverage/* build/logs - else - vendor/bin/phpunit --exclude-group none --no-coverage -v - fi + vendor/bin/phpunit --exclude-group none --no-coverage -v - name: Check Coding Style (only for CodingStyle) if: matrix.type == 'CodingStyle'