Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
ruby: [3.2]
rails: ["7.0", "7.1"]
db: [sqlite, postgres, mysql]
db: [sqlite, postgres, mysql, mariadb]

services:
postgres:
Expand All @@ -41,6 +41,18 @@ jobs:
--health-timeout=10s
--health-retries=5

mariadb:
image: mariadb:latest
ports: [3307:3306]
env:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: safe_migrations_test
options: >-
--health-cmd="healthcheck.sh --connect"
--health-interval=5s
--health-timeout=10s
--health-retries=5

env:
RAILS_ENV: test
BUNDLE_JOBS: 4
Expand Down Expand Up @@ -79,6 +91,9 @@ jobs:
mysql)
export DATABASE_URL="mysql2://root:root@127.0.0.1:3306/safe_migrations_test"
;;
mariadb)
export DATABASE_URL="mysql2://root:root@127.0.0.1:3307/safe_migrations_test"
;;
esac

echo "DATABASE_URL=$DATABASE_URL" >> $GITHUB_ENV
Expand Down