diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 87f9455..1b92471 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -15,6 +15,20 @@ env: jobs: build: runs-on: ubuntu-latest + services: + postgres: + image: postgres:14.5 + env: + POSTGRES_USER: admin + POSTGRES_PASSWORD: 1234 + POSTGRES_DB: admin-unit-test + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 defaults: run: working-directory: ./online-book-store