diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c188a77..7331b83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: matrix: ruby: [3.2] rails: ["7.0", "7.1"] - db: [sqlite, postgres, mysql] + db: [sqlite, postgres, mysql, mariadb] services: postgres: @@ -41,6 +41,18 @@ jobs: --health-timeout=10s --health-retries=5 + mariadb: + image: mariadb:latest + ports: [3307:3306] + env: + MARIADB_ROOT_PASSWORD: root + MARIADB_DATABASE: safe_migrations_test + options: >- + --health-cmd="healthcheck.sh --connect" + --health-interval=5s + --health-timeout=10s + --health-retries=5 + env: RAILS_ENV: test BUNDLE_JOBS: 4 @@ -79,6 +91,9 @@ jobs: mysql) export DATABASE_URL="mysql2://root:root@127.0.0.1:3306/safe_migrations_test" ;; + mariadb) + export DATABASE_URL="mysql2://root:root@127.0.0.1:3307/safe_migrations_test" + ;; esac echo "DATABASE_URL=$DATABASE_URL" >> $GITHUB_ENV