File tree Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Expand file tree Collapse file tree 6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 9
9
- uses : actions/checkout@v2
10
10
- name : Run tests
11
11
run : |
12
- docker-compose run --rm test_6_1_ruby_3_0 bundle exec rake db:migrate
13
- docker-compose run --rm test_6_1_ruby_3_0 bundle exec rspec spec/test
12
+ docker-compose run --rm test_6_1_ruby_3_0
14
13
test_6_1_ruby_2_7 :
15
14
runs-on : ubuntu-latest
16
15
steps :
17
16
- uses : actions/checkout@v2
18
17
- name : Run tests
19
18
run : |
20
- docker-compose run --rm test_6_1_ruby_2_7 bundle exec rake db:migrate
21
- docker-compose run --rm test_6_1_ruby_2_7 bundle exec rspec spec/test
19
+ docker-compose run --rm test_6_1_ruby_2_7
22
20
test_6_0_ruby_2_6 :
23
21
runs-on : ubuntu-latest
24
22
steps :
25
23
- uses : actions/checkout@v2
26
24
- name : Run tests
27
25
run : |
28
- docker-compose run --rm test_6_0_ruby_2_6 bundle exec rake db:migrate
29
- docker-compose run --rm test_6_0_ruby_2_6 bundle exec rspec spec/test
26
+ docker-compose run --rm test_6_0_ruby_2_6
30
27
test_5_2_ruby_2_6 :
31
28
runs-on : ubuntu-latest
32
29
steps :
33
30
- uses : actions/checkout@v2
34
31
- name : Run tests
35
32
run : |
36
- docker-compose run --rm test_5_2_ruby_2_6 bundle exec rake db:migrate
37
- docker-compose run --rm test_5_2_ruby_2_6 bundle exec rspec spec/test
33
+ docker-compose run --rm test_5_2_ruby_2_6
Original file line number Diff line number Diff line change @@ -40,5 +40,7 @@ RUN rm Gemfile.lock
40
40
RUN mv _Gemfile Gemfile
41
41
RUN mv _Gemfile.lock Gemfile.lock
42
42
43
+ RUN rm /app/spec/dummy/db/schema.rb
44
+
43
45
RUN rm /app/spec/dummy/config/application.rb
44
46
RUN mv /app/spec/dummy/config/application.5.2_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change @@ -40,5 +40,7 @@ RUN rm Gemfile.lock
40
40
RUN mv _Gemfile Gemfile
41
41
RUN mv _Gemfile.lock Gemfile.lock
42
42
43
+ RUN rm /app/spec/dummy/db/schema.rb
44
+
43
45
RUN rm /app/spec/dummy/config/application.rb
44
46
RUN mv /app/spec/dummy/config/application.6.0_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change @@ -40,5 +40,7 @@ RUN rm Gemfile.lock
40
40
RUN mv _Gemfile Gemfile
41
41
RUN mv _Gemfile.lock Gemfile.lock
42
42
43
+ RUN rm /app/spec/dummy/db/schema.rb
44
+
43
45
RUN rm /app/spec/dummy/config/application.rb
44
46
RUN mv /app/spec/dummy/config/application.6.1_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change @@ -40,5 +40,7 @@ RUN rm Gemfile.lock
40
40
RUN mv _Gemfile Gemfile
41
41
RUN mv _Gemfile.lock Gemfile.lock
42
42
43
+ RUN rm /app/spec/dummy/db/schema.rb
44
+
43
45
RUN rm /app/spec/dummy/config/application.rb
44
46
RUN mv /app/spec/dummy/config/application.6.1_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ services:
58
58
RAILS_ENV : test
59
59
links :
60
60
- " postgres_test_5_2_ruby_2_6:postgres_test"
61
- command : " bundle exec rspec spec/test"
61
+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test"
62
62
user : ${CURRENT_UID}
63
63
64
64
test_6_0_ruby_2_6 :
@@ -69,7 +69,7 @@ services:
69
69
RAILS_ENV : test
70
70
links :
71
71
- " postgres_test_6_0_ruby_2_6:postgres_test"
72
- command : " bundle exec rspec spec/test"
72
+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test"
73
73
user : ${CURRENT_UID}
74
74
75
75
test_6_1_ruby_2_7 :
@@ -80,7 +80,7 @@ services:
80
80
RAILS_ENV : test
81
81
links :
82
82
- " postgres_test_6_1_ruby_2_7:postgres_test"
83
- command : " bundle exec rspec spec/test"
83
+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test"
84
84
user : ${CURRENT_UID}
85
85
86
86
test_6_1_ruby_3_0 :
@@ -91,7 +91,7 @@ services:
91
91
RAILS_ENV : test
92
92
links :
93
93
- " postgres_test_6_1_ruby_3_0:postgres_test"
94
- command : " bundle exec rspec spec/test"
94
+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test"
95
95
user : ${CURRENT_UID}
96
96
97
97
postgres_dummy :
You can’t perform that action at this time.
0 commit comments