Skip to content

Commit 207f694

Browse files
authored
ci: add MariaDB (#2)
MariaDB is diverging from MySQL so lets just test it to be sure.
1 parent 53985c7 commit 207f694

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
ruby: [3.2]
1616
rails: ["7.0", "7.1"]
17-
db: [sqlite, postgres, mysql]
17+
db: [sqlite, postgres, mysql, mariadb]
1818

1919
services:
2020
postgres:
@@ -41,6 +41,18 @@ jobs:
4141
--health-timeout=10s
4242
--health-retries=5
4343
44+
mariadb:
45+
image: mariadb:latest
46+
ports: [3307:3306]
47+
env:
48+
MARIADB_ROOT_PASSWORD: root
49+
MARIADB_DATABASE: safe_migrations_test
50+
options: >-
51+
--health-cmd="healthcheck.sh --connect"
52+
--health-interval=5s
53+
--health-timeout=10s
54+
--health-retries=5
55+
4456
env:
4557
RAILS_ENV: test
4658
BUNDLE_JOBS: 4
@@ -79,6 +91,9 @@ jobs:
7991
mysql)
8092
export DATABASE_URL="mysql2://root:[email protected]:3306/safe_migrations_test"
8193
;;
94+
mariadb)
95+
export DATABASE_URL="mysql2://root:[email protected]:3307/safe_migrations_test"
96+
;;
8297
esac
8398
8499
echo "DATABASE_URL=$DATABASE_URL" >> $GITHUB_ENV

0 commit comments

Comments
 (0)