From 7cacba22762dcf41b254a15f6c2985fed69e843d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Thu, 7 Oct 2021 10:45:15 +0200 Subject: [PATCH] simplify --- .github/workflows/test-unit.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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'