From 58aeb725194c2fe5dca3956e2110fa003d754613 Mon Sep 17 00:00:00 2001 From: MrAnyx <1ptitigre@gmail.com> Date: Mon, 27 Nov 2023 21:46:30 +0000 Subject: [PATCH] fix(action) Added Sqlite3 php extension --- .env.test | 4 ++-- .github/workflows/ci.yaml | 9 +++------ data/database.db | 0 3 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 data/database.db diff --git a/.env.test b/.env.test index 2adf91a..85bf1d0 100644 --- a/.env.test +++ b/.env.test @@ -2,6 +2,6 @@ APP_ENV=test APP_SECRET=secret KERNEL_CLASS='App\Kernel' SYMFONY_DEPRECATIONS_HELPER=999999 -DATABASE_URL="sqlite:///%kernel.project_dir%/data/database.sqlite" -MAILER_DSN="smtp://maildev:25" +DATABASE_URL=sqlite:///%kernel.project_dir%/data/database.db +MAILER_DSN="smtp://localhost" CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8e80e73..51c032e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,15 +23,12 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: 16 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: "8.2" - extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json, opcache, zip, pcov + extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json, opcache, zip, pcov, sqlite3 env: update: true @@ -77,8 +74,8 @@ jobs: - name: Doctrine cache clear run: php bin/console doctrine:cache:clear-metadata - # - name: Drop previous database - # run: php bin/console doctrine:database:drop --force --if-exists --env=test --no-interaction + - name: Drop previous database + run: php bin/console doctrine:database:drop --force --if-exists --env=test --no-interaction - name: Create database run: php bin/console doctrine:database:create --if-not-exists --env=test --no-interaction diff --git a/data/database.db b/data/database.db new file mode 100644 index 0000000..e69de29