diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e241bdf..480471c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -58,6 +58,16 @@ jobs: test-api: runs-on: ubuntu-latest + services: + postgres: + image: postgres:16 + env: + POSTGRES_USER: app + POSTGRES_PASSWORD: password + POSTGRES_DB: unittest + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v4