diff --git a/.github/workflows/backend-ci.yaml b/.github/workflows/backend-ci.yaml index 44246cc..91c7ab4 100644 --- a/.github/workflows/backend-ci.yaml +++ b/.github/workflows/backend-ci.yaml @@ -9,6 +9,27 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} + services: + postgres: + image: postgres + env: + POSTGRES_USER: pg_user + POSTGRES_PASSWORD: pg_password + POSTGRES_DB: metro-now + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + redis: + image: redis + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: - name: Check out code uses: actions/checkout@v4