Skip to content

Commit

Permalink
fix: adding a postgresql container
Browse files Browse the repository at this point in the history
  • Loading branch information
kainlite committed Mar 14, 2024
1 parent d7dda89 commit 26bd8a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ jobs:
name: Build and test
runs-on: ubuntu-22.04

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:13-alpine
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432

env:
MIX_ENV: test

Expand Down
1 change: 0 additions & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ config :git_hooks,
]
],
pre_push: [
verbose: false,
tasks: [
{:cmd, "mix dialyzer"},
{:cmd, "mix test --color"},
Expand Down

0 comments on commit 26bd8a7

Please sign in to comment.