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_\- ]`