Skip to content

Commit

Permalink
MNT MariaDB integration (#93)
Browse files Browse the repository at this point in the history
* MNT MariaDB integration

* DOC Update README
  • Loading branch information
sabina-talipova authored Nov 6, 2023
1 parent c33bd92 commit a3c9199
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ jobs:
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=10
ports:
- 5432:5432
mariadb:
image: mariadb
env:
MARIADB_HOST: 127.0.0.1
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: SS_mysite
ports:
- 3311:3306
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=10

env:
artifacts_name: ${{ matrix.name }}
Expand Down Expand Up @@ -680,6 +689,13 @@ jobs:
SS_DATABASE_PASSWORD=""
SS_SQLITE_DATABASE_PATH=":memory:"
EOF
elif [[ "${{ matrix.db }}" =~ mariadb ]]; then
cat << EOF > .env
SS_DATABASE_SERVER="127.0.0.1"
SS_DATABASE_PORT="3311"
SS_DATABASE_USERNAME="root"
SS_DATABASE_PASSWORD="root"
EOF
fi
cat << EOF >> .env
SS_ENVIRONMENT_TYPE="dev"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Valid `db` are:
- mysql57
- mysql80
- sqlite3
- mariadb

###### name_suffix
Add a specific suffix to job and artifact names to make them easier to identify. This will be trucated if greater than 20 characters. Must match the regex `[a-zA-Z0-9_\- ]`
Expand Down

0 comments on commit a3c9199

Please sign in to comment.