Skip to content

Commit

Permalink
Enable postgres in GA
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Dec 14, 2023
1 parent 99a63df commit da5431b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:

- uses: nikita-volkov/build-and-test-cabal-package.github-action@v1
Expand Down
2 changes: 1 addition & 1 deletion test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ getConnectionSettings =
[ setting "host" $ defaultEnv "POSTGRES_HOST" "localhost",
setting "port" $ defaultEnv "POSTGRES_PORT" "5432",
setting "user" $ defaultEnv "POSTGRES_USER" "postgres",
setting "password" $ maybeEnv "POSTGRES_PASSWORD",
setting "password" $ defaultEnv "POSTGRES_PASSWORD" "postgres",
setting "dbname" $ defaultEnv "POSTGRES_DBNAME" "postgres"
]
where
Expand Down

0 comments on commit da5431b

Please sign in to comment.