From d0a4d477eb8d27335201445d77c6dac9a03e2d14 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 28 Jun 2020 15:40:02 -0700 Subject: [PATCH] Testing improvements; always run the integration & unit tests even if failure occurred --- .github/workflows/tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b22f0219..a507466e1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,10 +29,12 @@ jobs: - name: cache dependencies uses: actions/cache@v2 with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }} + path: | + ~/.php_cs.cache + ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-cache-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }} restore-keys: | - ${{ runner.os }}-composer-${{ matrix.php }}- + ${{ runner.os }}-cache-${{ matrix.php }}- - name: setup uses: shivammathur/setup-php@v2 with: @@ -44,13 +46,17 @@ jobs: run: cp .env.ci .env - name: install dependencies run: composer install --prefer-dist --no-interaction --no-progress + - name: run cs-fixer + run: vendor/bin/php-cs-fixer fix --dry-run --diff --diff-format=udiff - name: execute unit tests run: vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit + if: ${{ always() }} env: DB_CONNECTION: testing TESTING_DB_HOST: UNIT_NO_DB - name: execute integration tests run: vendor/bin/phpunit tests/Integration + if: ${{ always() }} env: TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }} TESTING_DB_USERNAME: root