Skip to content

Add MySQL and PostgreSQL to CI database matrix#213

Merged
Fivell merged 2 commits intomasterfrom
ci-db-matrix
Apr 8, 2026
Merged

Add MySQL and PostgreSQL to CI database matrix#213
Fivell merged 2 commits intomasterfrom
ci-db-matrix

Conversation

@Fivell
Copy link
Copy Markdown
Member

@Fivell Fivell commented Apr 8, 2026

The existing CI matrix runs exclusively against SQLite, which hides any adapter-specific behavior (upsert semantics, conflict targets, column types, etc.). This adds two new CI jobs — one for MySQL 8.0 and one for PostgreSQL 16 — that run the full spec suite against a live database service, using the latest supported Ruby/Rails/ActiveAdmin combination.

The adapter is selected by the DB env var (sqlite | mysql | postgres). The test Rails app is cached per-adapter (spec/rails/rails-<ver>-<db>) and the Gemfile loads the matching driver conditionally. Host, port, and credentials are all driven from env vars so the same setup works locally and in CI.

Fivell added 2 commits April 8, 2026 11:48
The existing CI matrix runs exclusively against SQLite, which hides any
adapter-specific behavior (upsert semantics, conflict targets, column
types, etc.). This adds two new CI jobs — one for MySQL 8.0 and one for
PostgreSQL 16 — that run the full spec suite against a live database
service, using the latest supported Ruby/Rails/ActiveAdmin combination.

The adapter is selected by the `DB` env var (sqlite | mysql | postgres).
The test Rails app is cached per-adapter (`spec/rails/rails-<ver>-<db>`)
and the Gemfile loads the matching driver conditionally. Host, port, and
credentials are all driven from env vars so the same setup works locally
and in CI.
The MySQL and PostgreSQL jobs were named just "DB mysql" / "DB postgres",
which hides the Ruby/Rails/ActiveAdmin combination they run against. The
SQLite matrix jobs also didn't mention "SQLite" anywhere. Rename all
three job groups so the PR checks list shows exactly what's being tested
at a glance.
@Fivell Fivell merged commit ce38f01 into master Apr 8, 2026
36 checks passed
@Fivell Fivell deleted the ci-db-matrix branch April 8, 2026 09:56
@Fivell Fivell mentioned this pull request Apr 8, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant