Skip to content

Commit 9d85501

Browse files
committed
Update deployment checks action too. Unpin postgres version
1 parent f27a1fd commit 9d85501

2 files changed

Lines changed: 24 additions & 9 deletions

File tree

.github/workflows/deployment-checks.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,32 @@ jobs:
1212
DB_PASSWORD: password
1313
SECRET_BASE_KEY: test_key
1414
RAILS_ENV: production
15+
services:
16+
postgres:
17+
image: postgres
18+
env:
19+
POSTGRES_DB: ${{ env.DB_NAME }}
20+
POSTGRES_USER: ${{ env.DB_USER }}
21+
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
22+
ports:
23+
- 5432:5432
24+
options: >-
25+
--health-cmd "pg_isready"
26+
--health-interval 10s
27+
--health-timeout 5s
28+
--health-retries 5
29+
redis:
30+
image: redis
31+
options: >-
32+
--health-cmd "redis-cli ping"
33+
--health-interval 10s
34+
--health-timeout 5s
35+
--health-retries 5
36+
ports:
37+
- 6379:6379
1538
steps:
16-
- uses: harmon758/postgresql-action@v1
17-
with:
18-
postgresql db: ${DB_NAME}
19-
postgresql user: ${DB_USER}
20-
postgresql password: ${DB_PASSWORD}
21-
name: Set up database
22-
2339
- uses: actions/checkout@v4
2440
name: Set up Ruby
25-
2641
- uses: ruby/setup-ruby@v1
2742
with:
2843
bundler-cache: true

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
REDIS_TEST_URL: redis://localhost:6379/0
1616
services:
1717
postgres:
18-
image: postgres:14
18+
image: postgres
1919
env:
2020
POSTGRES_DB: ${{ env.DB_NAME }}
2121
POSTGRES_USER: ${{ env.DB_USER }}

0 commit comments

Comments
 (0)