Skip to content

Commit b94a1d0

Browse files
authored
Merge pull request #2243 from till/pin-postgres
chore(deps): pin postgres to version 17
2 parents 8142c4f + 18bebdf commit b94a1d0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ruby.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ jobs:
99

1010
services:
1111
postgres:
12-
image: postgres:11.5
12+
image: postgres:17
1313
ports: ["5432:5432"]
14+
env:
15+
POSTGRES_PASSWORD: postgres
16+
POSTGRES_DB: test
1417
options: >-
1518
--health-cmd pg_isready
1619
--health-interval 10s
@@ -29,14 +32,14 @@ jobs:
2932

3033
- name: Setup test database
3134
env:
32-
DATABASE_URL: postgres://postgres:@localhost:5432/test
35+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
3336
RAILS_ENV: test
3437
run:
3538
bundle exec rake db:create db:migrate
3639

3740
- name: Run tests
3841
env:
39-
DATABASE_URL: postgres://postgres:@localhost:5432/test
42+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
4043
RAILS_ENV: test
4144
run: bundle exec rake spec
4245
- name: Report to Coveralls

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: postgres
3+
image: postgres:17
44
volumes:
55
- db_data:/var/lib/postgresql/data
66
environment:

0 commit comments

Comments
 (0)