From 05108b64e60a010d614d94be10d45769ca6dc1e5 Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Mon, 19 Jul 2021 18:50:10 +0200 Subject: [PATCH] Improve github actions commands --- .github/workflows/build.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d46e6e48..5b4fa4a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,6 @@ jobs: - php: '8.1' flags: "--ignore-platform-req=php" stability: prefer-stable - composer-flags: [ '' ] - phpunit-flags: [ '--coverage-text' ] steps: - name: Checkout code uses: actions/checkout@v2 @@ -32,8 +30,18 @@ jobs: - name: Install dependencies run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }} - - run: composer phpunit - - run: composer phpstan + - name: Run Unit tests with coverage + run: composer phpunit + if: ${{ matrix.php != '8.1' }} + + - name: Run Unit tests without coverage + run: vendor/bin/phpunit --no-coverage -vvv + if: ${{ matrix.php == '8.1' }} + + - name: Run static analysis + run: composer phpstan if: ${{ matrix.php == '8.0' }} - - run: composer phpcs + + - name: Run Coding style rules + run: composer phpcs if: ${{ matrix.php == '8.0' }}