To run the specs against a different database we need to set the DB
environment variable.
The current workflow is missing this env var so it always runs with sqlite3.
Some other fixes include:
Make sure the workflow credentials match the db/database.yml
Stringify the database configuration keys for Rails 6.1.
Changed the branch for the latest Rails version from master to main.
Add sort_by to the leaves spec to make sure it works on postgres 12.
To run the specs against a different database we need to set the DB environment variable. The current workflow is missing this env var so it always runs with sqlite3.
Some other fixes include: