File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,12 @@ jobs:
2929 - name : cache dependencies
3030 uses : actions/cache@v2
3131 with :
32- path : ${{ steps.composer-cache.outputs.dir }}
33- key : ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }}
32+ path : |
33+ ~/.php_cs.cache
34+ ${{ steps.composer-cache.outputs.dir }}
35+ key : ${{ runner.os }}-cache-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }}
3436 restore-keys : |
35- ${{ runner.os }}-composer -${{ matrix.php }}-
37+ ${{ runner.os }}-cache -${{ matrix.php }}-
3638 - name : setup
3739 uses : shivammathur/setup-php@v2
3840 with :
@@ -44,13 +46,17 @@ jobs:
4446 run : cp .env.ci .env
4547 - name : install dependencies
4648 run : composer install --prefer-dist --no-interaction --no-progress
49+ - name : run cs-fixer
50+ run : vendor/bin/php-cs-fixer fix --dry-run --diff --diff-format=udiff
4751 - name : execute unit tests
4852 run : vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit
53+ if : ${{ always() }}
4954 env :
5055 DB_CONNECTION : testing
5156 TESTING_DB_HOST : UNIT_NO_DB
5257 - name : execute integration tests
5358 run : vendor/bin/phpunit tests/Integration
59+ if : ${{ always() }}
5460 env :
5561 TESTING_DB_PORT : ${{ job.services.mysql.ports[3306] }}
5662 TESTING_DB_USERNAME : root
You can’t perform that action at this time.
0 commit comments