@@ -57,7 +57,7 @@ services:
5757 environment :
5858 RAILS_ENV : test
5959 links :
60- - postgres_test
60+ - postgres_test_5_2_ruby_2_6
6161 command : " bundle exec rspec spec/test"
6262 user : ${CURRENT_UID}
6363
@@ -68,7 +68,7 @@ services:
6868 environment :
6969 RAILS_ENV : test
7070 links :
71- - postgres_test
71+ - postgres_test_6_0_ruby_2_6
7272 command : " bundle exec rspec spec/test"
7373 user : ${CURRENT_UID}
7474
@@ -79,7 +79,7 @@ services:
7979 environment :
8080 RAILS_ENV : test
8181 links :
82- - postgres_test
82+ - postgres_test_6_1_ruby_2_7
8383 command : " bundle exec rspec spec/test"
8484 user : ${CURRENT_UID}
8585
@@ -90,7 +90,7 @@ services:
9090 environment :
9191 RAILS_ENV : test
9292 links :
93- - postgres_test
93+ - postgres_test_6_1_ruby_3_0
9494 command : " bundle exec rspec spec/test"
9595 user : ${CURRENT_UID}
9696
@@ -105,17 +105,32 @@ services:
105105 volumes :
106106 - dummy-data-volume:/var/lib/postgresql/data
107107
108- postgres_test :
108+ postgres_test_base : &postgres_test_base
109109 image : postgres
110110 expose :
111111 - 5432
112112 environment :
113113 POSTGRES_USER : postgres
114114 POSTGRES_PASSWORD : postgres
115115 POSTGRES_DB : test
116+
117+ postgres_test :
118+ << : *postgres_test_base
116119 volumes :
117120 - test-data-volume:/var/lib/postgresql/data
118121
122+ postgres_test_6_1_ruby_3_0 :
123+ << : *postgres_test_base
124+
125+ postgres_test_6_1_ruby_2_7 :
126+ << : *postgres_test_base
127+
128+ postgres_test_6_0_ruby_2_6 :
129+ << : *postgres_test_base
130+
131+ postgres_test_5_2_ruby_2_6 :
132+ << : *postgres_test_base
133+
119134volumes :
120135 test-data-volume :
121136 dummy-data-volume :
0 commit comments