Drop mysql2 support, settle on postgresql

It's enough work to support one database, let's settle on
the defacto Rails default.
This commit is contained in:
Henne Vogelsang 2024-06-06 17:16:02 +02:00
parent f51db484ab
commit b2f0796799
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
11 changed files with 38 additions and 40 deletions

View file

@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
name: next-rails
env:
OSEM_DB_HOST: localhost
RAILS_ENV: test
strategy:
matrix:
@ -29,7 +30,6 @@ jobs:
bundler-cache: true
- name: Prepare spec
run: |
rm -f osem_test osem_development
bundle exec rake db:setup --trace
bundle exec bin/rails webdrivers:chromedriver:update
- name: spec/${{ matrix.suite }}
@ -40,3 +40,15 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/coverage.xml
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

View file

@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-latest
name: spec
env:
OSEM_DB_HOST: localhost
RAILS_ENV: test
strategy:
matrix:
@ -37,7 +38,6 @@ jobs:
bundler-cache: true
- name: Prepare spec
run: |
rm -f osem_test osem_development
bundle exec rake db:setup --trace
bundle exec bin/rails webdrivers:chromedriver:update
bundle exec rake factory_bot:lint RAILS_ENV=test
@ -49,3 +49,15 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/coverage.xml
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432