File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
services :
11
11
postgres :
12
- image : postgres:11.5
12
+ image : postgres:17
13
13
ports : ["5432:5432"]
14
+ env :
15
+ POSTGRES_PASSWORD : postgres
16
+ POSTGRES_DB : test
14
17
options : >-
15
18
--health-cmd pg_isready
16
19
--health-interval 10s
@@ -29,14 +32,14 @@ jobs:
29
32
30
33
- name : Setup test database
31
34
env :
32
- DATABASE_URL : postgres://postgres:@localhost:5432/test
35
+ DATABASE_URL : postgres://postgres:postgres @localhost:5432/test
33
36
RAILS_ENV : test
34
37
run :
35
38
bundle exec rake db:create db:migrate
36
39
37
40
- name : Run tests
38
41
env :
39
- DATABASE_URL : postgres://postgres:@localhost:5432/test
42
+ DATABASE_URL : postgres://postgres:postgres @localhost:5432/test
40
43
RAILS_ENV : test
41
44
run : bundle exec rake spec
42
45
- name : Report to Coveralls
Original file line number Diff line number Diff line change 1
1
services :
2
2
db :
3
- image : postgres
3
+ image : postgres:17
4
4
volumes :
5
5
- db_data:/var/lib/postgresql/data
6
6
environment :
You can’t perform that action at this time.
0 commit comments