From eb64282ec8beeb167ac9dd1a042740cd4f028051 Mon Sep 17 00:00:00 2001 From: Rutger Hertogh Date: Tue, 2 Apr 2024 00:54:19 +0200 Subject: [PATCH] Added "Create SQLite DB file" step in `.github/workflows/build.yml` --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0f8775..bb55b67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: [push, pull_request] env: DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" XDEBUG_MODE: coverage, develop + SQLITE_DB_FILE: "/var/sqlite/Yii2-Oauth2-Server.sqlite" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -57,6 +58,14 @@ jobs: extensions: curl, dom, imagick, intl, mbstring, mcrypt, memcached, mysql, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite ini-values: date.timezone='UTC', session.save_path="${{ runner.temp }}" + - name: Create SQLite DB file + if: matrix.db == 'SQLite' + run: | + echo "Creating SQLite database file: $SQLITE_DB_FILE" + install -m 777 -d `dirname $SQLITE_DB_FILE` + touch $SQLITE_DB_FILE + chmod 777 $SQLITE_DB_FILE + - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" @@ -88,8 +97,6 @@ jobs: "2022-01-01": "def00000c8fc3b1b8d017afc6a645f94e6d2f5fc9d71e8b3eb26e5b2de6ef23232dd19446bbeef26fbd51dd2fd4cd5641e68db28ec76f8460bb3f33aaab3cff7b9fcfe62" } - SQLITE_DB_FILE: "/var/sqlite/Yii2-Oauth2-Server.sqlite" - MYSQL_HOST: 127.0.0.1 MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} MYSQL_DB_NAME: Yii2Oauth2ServerTest