Skip to content

Commit

Permalink
Spin up the PostgreSQL service in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vitallium committed Apr 28, 2024
1 parent d021fb6 commit 95d214c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ jobs:
test:
name: "Test"
runs-on: ubuntu-latest
services:
db:
image: postgres:latest
ports: ["5432:5432"]
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 95d214c

Please sign in to comment.