diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cdc82b96..ca7ac54b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,6 +21,7 @@ jobs: ports: - 3306:3306 env: + MYSQL_HOST: 127.0.0.1 MYSQL_ROOT_PASSWORD: root MYSQL_USER: github MYSQL_PASSWORD: github @@ -103,8 +104,6 @@ jobs: rubygems: latest - name: Set up databases run: | - sudo /etc/init.d/mysql start - mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }} CHARACTER SET utf8 COLLATE utf8_general_ci;' -u root -proot psql -h localhost -U postgres -c 'create database ${{ env.DB_DATABASE }};' psql -h localhost -U postgres -d ${{ env.DB_DATABASE }} -c 'create extension if not exists hstore;' psql -h localhost -U postgres -c 'create extension if not exists postgis;' diff --git a/test/github/database.yml b/test/github/database.yml index 2d1fefe1..1cd5ca42 100644 --- a/test/github/database.yml +++ b/test/github/database.yml @@ -3,7 +3,7 @@ common: &common password: root encoding: utf8 collation: utf8_general_ci - host: localhost + host: 127.0.0.1 database: activerecord_import_test jdbcpostgresql: &postgresql @@ -54,7 +54,7 @@ seamless_database_pool: pool_adapter: mysql2 prepared_statements: false master: - host: localhost + host: 127.0.0.1 sqlite: adapter: sqlite