From b92a2c8b64b5f403642be767dddfde6826d614ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 23 Jul 2022 22:39:53 +0200 Subject: [PATCH] Fixed github tests action issue with sqlite. --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index abf1b010..cfccc490 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ on: jobs: phpunit: - name: PHPUnit and coverage Test (${{ matrix.php-versions }}) + name: PHPUnit and coverage Test (PHP ${{ matrix.php-versions }}, ${{ matrix.db-type }}) # Ubuntu 20.04 ships MySQL 8.0 which causes problems with login, so we just use ubuntu 18.04 for now... runs-on: ubuntu-18.04 @@ -98,6 +98,12 @@ jobs: - name: Create DB run: php bin/console --env test doctrine:database:create --if-not-exists -n + if: {{ matrix.db-type }} == 'mysql' + + # Checkinf for existance is not supported for sqlite, so do it without it + - name: Create DB + run: php bin/console --env test doctrine:database:create -n + if: {{ matrix.db-type }} == 'sqlite' - name: Do migrations run: php bin/console --env test doctrine:migrations:migrate -n