Skip to content

Conversation

@kholdrex
Copy link
Owner

@kholdrex kholdrex commented Mar 14, 2025

This PR expands our GitHub Actions CI to run tests on both PostgreSQL and MySQL, in addition to the Ruby/ActiveRecord matrix we already use. Specifically:

  1. PostgreSQL & MySQL Jobs
  • We define two new jobs – test_postgres and test_mysql – each spinning up their respective database service.
  • Our existing matrix for (ruby-version, activerecord-gemfile) is reused for each DB, ensuring wide coverage.
  1. Local SQLite
  • We omit SQLite from CI (we can test that locally) to keep the build simpler and shorter.
  1. Looser Test Matching
  • Updated a few specs to allow flexible quoting (backticks vs. double quotes) and minor differences in boolean or numeric representations. This ensures that tests pass on both MySQL and Postgres without failing on quoting style.

@kholdrex kholdrex marked this pull request as ready for review March 14, 2025 02:40
@kholdrex kholdrex force-pushed the setup-ci-to-support-multiple-databases branch from 3b2f57d to 7080ad9 Compare March 14, 2025 02:44
@kholdrex kholdrex added the enhancement New feature or request label Mar 15, 2025
@kholdrex kholdrex self-assigned this Mar 15, 2025
@kholdrex kholdrex merged commit 6514504 into master Mar 15, 2025
20 checks passed
@kholdrex kholdrex deleted the setup-ci-to-support-multiple-databases branch March 15, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants