Skip to content

Commit

Permalink
fix env var usage
Browse files Browse the repository at this point in the history
  • Loading branch information
CXwudi committed Dec 6, 2024
1 parent 0c7e820 commit 1664099
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/http4k-backend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
postgres:
image: postgres:alpine
env:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${{ env.DB_NAME }}
POSTGRES_USER: ${{ env.DB_USER }}
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
options: >-
--health-cmd "pg_isready -U ${DB_USER} -d ${DB_NAME}"
--health-cmd "pg_isready -U test-user -d test-db"
--health-interval 3s
--health-timeout 5s
--health-retries 5
Expand Down Expand Up @@ -58,9 +58,9 @@ jobs:
- name: Run Database Migrations
uses: docker://flyway/flyway:latest-alpine
env:
FLYWAY_URL: jdbc:postgresql://postgres:5432/${DB_NAME}
FLYWAY_USER: ${DB_USER}
FLYWAY_PASSWORD: ${DB_PASSWORD}
FLYWAY_URL: jdbc:postgresql://postgres:5432/${{ env.DB_NAME }}
FLYWAY_USER: ${{ env.DB_USER }}
FLYWAY_PASSWORD: ${{ env.DB_PASSWORD }}
FLYWAY_CLEAN_DISABLED: false
FLYWAY_LOCATIONS: filesystem:/github/workspace/conduit-backend/db-migration/main,filesystem:/github/workspace/conduit-backend/db-migration/test
with:
Expand All @@ -72,9 +72,9 @@ jobs:
- name: Run Backend Tests
working-directory: conduit-backend
env:
DB__URL: jdbc:postgresql://postgres:5432/${DB_NAME}
DB__USER: ${DB_USER}
DB__PASSWORD: ${DB_PASSWORD}
DB__URL: jdbc:postgresql://postgres:5432/${{ env.DB_NAME }}
DB__USER: ${{ env.DB_USER }}
DB__PASSWORD: ${{ env.DB_PASSWORD }}
run: |
./gradlew check
Expand Down

0 comments on commit 1664099

Please sign in to comment.