diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b8979b..6da3829 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,17 @@ jobs: build: name: Build and test runs-on: ubuntu-latest + services: + postgres: + image: postgres:12 + ports: ['5432:5432'] + env: + POSTGRES_PASSWORD: postgres + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - uses: actions/checkout@v2