diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index ae29eee..43c4970 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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 diff --git a/config/dev.exs b/config/dev.exs index 14e9ded..8e4b7da 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -106,7 +106,6 @@ config :git_hooks, ] ], pre_push: [ - verbose: false, tasks: [ {:cmd, "mix dialyzer"}, {:cmd, "mix test --color"},