File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 10
10
tests :
11
11
runs-on : ubuntu-latest
12
12
services :
13
+ mysql :
14
+ image : mysql
15
+ env :
16
+ MYSQL_ROOT_PASSWORD : root
17
+ MYSQL_DATABASE : test
18
+ ports :
19
+ - 3306:3306
20
+ options : >-
21
+ --health-cmd "mysqladmin ping"
22
+ --health-interval 10s
23
+ --health-timeout 5s
24
+ --health-retries 5
13
25
postgres :
14
26
image : postgres
15
27
env :
35
47
- 5.2.4.4
36
48
- 5.1.7
37
49
database_url :
50
+ -
mysql2://root:[email protected] :3306/test
38
51
- postgresql://postgres:password@localhost:5432/test
39
52
- sqlite3:test_db
40
53
exclude :
59
72
- name : Install dependencies
60
73
run : bundle install --jobs 4 --retry 3
61
74
- name : Run tests
62
- run : bundle exec rake test
75
+ run : bundle exec rake test
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ version = ENV['RAILS_VERSION'] || 'default'
10
10
11
11
platforms :ruby do
12
12
gem 'pg'
13
+ gem 'mysql2'
13
14
14
15
if version . start_with? ( '4.2' , '5.0' )
15
16
gem 'sqlite3' , '~> 1.3.13'
@@ -26,4 +27,4 @@ when 'default'
26
27
gem 'railties' , '>= 6.0'
27
28
else
28
29
gem 'railties' , "~> #{ version } "
29
- end
30
+ end
You can’t perform that action at this time.
0 commit comments