Skip to content

Commit

Permalink
FIX Lock mariadb to a specific version we know is supported (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Feb 22, 2024
1 parent d768bd4 commit 26e37a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
ports:
- 5432:5432
mariadb:
image: mariadb
image: mariadb:11.2
env:
MARIADB_HOST: 127.0.0.1
MARIADB_ROOT_PASSWORD: root
Expand Down Expand Up @@ -683,15 +683,15 @@ jobs:
if [[ "${{ matrix.db }}" =~ mysql ]]; then
if [[ "${{ matrix.db }}" == "mysql57pdo" ]]; then
echo "mysql version":
mysql --port=3357 --user=root --password=root --execute="SELECT VERSION();" || true
mysql --host=127.0.0.1 --port=3357 --user=root --password=root --execute="SELECT VERSION();" || true
cat << EOF > .env
SS_DATABASE_CLASS="MySQLPDODatabase"
SS_DATABASE_PORT="3357"
EOF
else
MYSQL_PORT=${{ matrix.db == 'mysql57' && '3357' || '3380' }}
echo "mysql version":
mysql --user=root --password=root --port=$MYSQL_PORT --execute="SELECT VERSION();" || true
mysql --host=127.0.0.1 --user=root --password=root --port=$MYSQL_PORT --execute="SELECT VERSION();" || true
cat << EOF > .env
SS_DATABASE_CLASS="MySQLDatabase"
SS_DATABASE_PORT="${MYSQL_PORT}"
Expand Down Expand Up @@ -719,7 +719,7 @@ jobs:
EOF
elif [[ "${{ matrix.db }}" =~ mariadb ]]; then
echo "mariadb version":
mysql --port=3311 --user=root --password=root --execute="SELECT VERSION();" || true
mysql --host=127.0.0.1 --port=3311 --user=root --password=root --execute="SELECT VERSION();" || true
cat << EOF > .env
SS_DATABASE_SERVER="127.0.0.1"
SS_DATABASE_PORT="3311"
Expand Down

0 comments on commit 26e37a5

Please sign in to comment.