mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Migrate to SQLite so we can download a full test database later.
This commit is contained in:
38
.github/workflows/sonarcloud.yml
vendored
38
.github/workflows/sonarcloud.yml
vendored
@@ -7,32 +7,12 @@ on:
|
|||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
env:
|
env:
|
||||||
DB_CONNECTION: mysql
|
DB_CONNECTION: sqlite
|
||||||
DB_HOST: "127.0.0.1"
|
|
||||||
DB_DATABASE: firefly
|
|
||||||
DB_USER: firefly
|
|
||||||
DB_PASSWORD: secret_firefly_password
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
name: SonarCloud
|
name: SonarCloud
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
|
||||||
mariadb:
|
|
||||||
image: mariadb:latest
|
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
env:
|
|
||||||
MYSQL_ROOT_PASSWORD: yes
|
|
||||||
MYSQL_USER: ${{ env.DB_USER }}
|
|
||||||
MYSQL_PASSWORD: ${{ env.DB_PASSWORD }}
|
|
||||||
MYSQL_DATABASE: ${{ env.DB_DATABASE }}
|
|
||||||
options: >-
|
|
||||||
--health-cmd="healthcheck.sh --connect --innodb_initialized"
|
|
||||||
--health-interval=10s
|
|
||||||
--health-timeout=5s
|
|
||||||
--health-retries=3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -51,7 +31,7 @@ jobs:
|
|||||||
iconv
|
iconv
|
||||||
intl
|
intl
|
||||||
json
|
json
|
||||||
mysql
|
sqlite3
|
||||||
mbstring
|
mbstring
|
||||||
openssl
|
openssl
|
||||||
pdo
|
pdo
|
||||||
@@ -65,20 +45,12 @@ jobs:
|
|||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
||||||
|
|
||||||
- name: Verify Database connection
|
|
||||||
env:
|
|
||||||
PORT: ${{ job.services.mariadb.ports[3306] }}
|
|
||||||
run: |
|
|
||||||
while ! mysqladmin ping -h"${{env.DB_HOST}}" -P"${PORT}" --silent; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Copy environment file
|
|
||||||
run: sed 's@DB_HOST=.*@DB_HOST=${{env.DB_HOST}}@g' .env.example > .env
|
|
||||||
|
|
||||||
- name: Generate app key
|
- name: Generate app key
|
||||||
run: php artisan key:generate
|
run: php artisan key:generate
|
||||||
|
|
||||||
|
- name: "Create database file"
|
||||||
|
run: touch storage/database/database.sqlite
|
||||||
|
|
||||||
- name: "Create the database"
|
- name: "Create the database"
|
||||||
run: php artisan firefly-iii:create-database
|
run: php artisan firefly-iii:create-database
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user