Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Github workflows into individual files
To get a better overview of all the tasks that are being run as well as for better maintainability, split the `test` Github workflow into separate ones, one for executing the Rubocop checks and one per DB we test against. Since each DB tests against a grid of Ruby as well as DB versions, this gives us a better view on which tests are still running. Also, given that the 18.04 Ubuntu image has been deprecated by Github, upgrade the Rubocop and Postgres jobs to run on Ubuntu 22. For MySQL this is a bit more complicated since newer versions of Ubuntu are incompatible with MySQL 5.7 but we still need to keep support for 5.7 as it still is a maintained MySQL version. Therefore, use MacOS for testing against MySQL 5.7 and Ubuntu to test MySQL 8. But since MacOS does not allow to install the `pg` gem unless Postgres is installed on the machine, remove the `pg` gem from the main Gemfile and install it only in the Postgres test flow via a custom Gemfile. The `mysql` gem is used for local testing and will therefore stay in the main Gemfile for now.
- Loading branch information