Skip to content

Commit 0b521c0

Browse files
committed
Fix test workflow matrix for databases
1 parent db74b00 commit 0b521c0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ jobs:
4646
~/.php_cs.cache
4747
${{ steps.composer-cache.outputs.dir }}
4848
key: ${{ runner.os }}-cache-${{ matrix.php }}-${{ hashFiles('**.composer.lock') }}
49-
restore-keys: |
50-
${{ runner.os }}-cache-${{ matrix.php }}-
5149
- name: setup
5250
uses: shivammathur/setup-php@v2
5351
with:
@@ -63,20 +61,20 @@ jobs:
6361
run: vendor/bin/php-cs-fixer fix --dry-run --diff --diff-format=udiff --config .php_cs.dist
6462
continue-on-error: true
6563
- name: execute unit tests
66-
run: vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit
64+
run: vendor/bin/phpunit --bootstrap vendor/autoload.php tests/Unit
6765
if: ${{ always() }}
6866
env:
6967
DB_CONNECTION: testing
7068
TESTING_DB_HOST: UNIT_NO_DB
7169
- name: execute integration tests (mysql)
7270
run: vendor/bin/phpunit tests/Integration
73-
if: "${{ matrix.database }} == 'mysql'"
71+
if: ${{ matrix.database == 'mysql' }}
7472
env:
7573
TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }}
7674
TESTING_DB_USERNAME: root
7775
- name: execute integration tests (mariadb)
7876
run: vendor/bin/phpunit tests/Integration
79-
if: "${{ matrix.database }} == 'mariadb'"
77+
if: ${{ matrix.database == 'mariadb' }}
8078
env:
8179
TESTING_DB_PORT: ${{ job.services.mariadb.ports[3306] }}
8280
TESTING_DB_USERNAME: root

0 commit comments

Comments
 (0)