Skip to content

Commit

Permalink
[CI] Add MySQL to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
karlwilbur committed May 29, 2021
1 parent b3f6f3e commit 68a0c7d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ jobs:
tests:
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres
env:
Expand All @@ -35,6 +47,7 @@ jobs:
- 5.2.4.4
- 5.1.7
database_url:
- mysql2://root:[email protected]:3306/test
- postgresql://postgres:password@localhost:5432/test
- sqlite3:test_db
exclude:
Expand All @@ -59,4 +72,4 @@ jobs:
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake test
run: bundle exec rake test

0 comments on commit 68a0c7d

Please sign in to comment.