From a3c9199b300f920bd4c7e7ebcc0d2dfac7c8e346 Mon Sep 17 00:00:00 2001 From: Sabina Talipova <87288324+sabina-talipova@users.noreply.github.com> Date: Tue, 7 Nov 2023 08:53:08 +1300 Subject: [PATCH] MNT MariaDB integration (#93) * MNT MariaDB integration * DOC Update README --- .github/workflows/ci.yml | 16 ++++++++++++++++ README.md | 1 + 2 files changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29972e0..985a9cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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" diff --git a/README.md b/README.md index cc0ee8e..f76a7ba 100644 --- a/README.md +++ b/README.md @@ -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_\- ]`