Skip to content

Commit

Permalink
Added "Create SQLite DB file" step in .github/workflows/build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rhertogh committed Apr 1, 2024
1 parent 079938a commit eb64282
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eb64282

Please sign in to comment.