Skip to content

Commit

Permalink
add mysql service to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adlamas committed Oct 4, 2023
1 parent c19f34d commit ece07b8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:5.7
env:
MYSQL_HOST: 127.0.0.1
MYSQL_DB: github_actions_test
MYSQL_USER: root
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_PASSWORD:
ports:
- "3306:3306"
env:
BUNDLE_GEMFILE: Gemfile
name: "RSpec tests: Ruby ${{ matrix.version }}"
Expand All @@ -46,4 +56,13 @@ jobs:
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: 5432
ADAPTER: postgresql
- name: Run tests on mysql
run: bundle exec rspec
env:
ADAPTER: mysql2
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_DATABASE: github_actions_test
MYSQL_USER: root
MYSQL_PASSWORD:

0 comments on commit ece07b8

Please sign in to comment.