Skip to content

Commit

Permalink
set new ports for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
adlamas committed Oct 5, 2023
1 parent 666665d commit 8fc555f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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:

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 8fc555f

Please sign in to comment.