diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23aea20..dd05056 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,12 @@ jobs: mysql: image: mysql:5.7 env: - MYSQL_DB: active_outbox_db + MYSQL_DATABASE: active_outbox_db MYSQL_USER: root MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_PASSWORD: ports: - - 127.0.0.1:3306 + - 3306:3306 env: BUNDLE_GEMFILE: Gemfile name: "RSpec tests: Ruby ${{ matrix.version }}" @@ -59,9 +59,9 @@ jobs: run: bundle exec rspec env: ADAPTER: mysql2 - MYSQL_HOST: 127.0.0.1 + DATABASE_NAME: active_outbox_db + MYSQL_HOST: 3306 MYSQL_PORT: 3306 - MYSQL_DATABASE: active_outbox_db MYSQL_USER: root MYSQL_PASSWORD: diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 21a2c07..fbd7b6b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -31,7 +31,7 @@ host: ENV['MYSQL_HOST'], port: ENV['MYSQL_PORT'], password: ENV['MYSQL_PASSWORD'], - database: ENV['MYSQL_DATABASE'] + database: ENV['DATABASE_NAME'] } else {