Skip to content

Commit

Permalink
adjust pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 29, 2024
1 parent 28f48c6 commit 98427e5
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/dashboard_app_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dashboard_app
POSTGRES_PASSWORD: password
POSTGRES_DB: data_handler
ports:
- 5432:5432
options: >-
Expand Down Expand Up @@ -45,26 +45,6 @@ jobs:
working-directory: ./apps/dashboard_app
run: |
cp .env.dev .env
sed -i 's/DB_HOST=.*/DB_HOST=127.0.0.1/' .env
sed -i 's/DB_PORT=.*/DB_PORT=5432/' .env
sed -i 's/DB_USER=.*/DB_USER=postgres/' .env
sed -i 's/DB_PASSWORD=.*/DB_PASSWORD=password/' .env
sed -i 's/DB_NAME=.*/DB_NAME=data_handler/' .env
- name: Add DATABASE_URL to Environment
working-directory: ./apps/dashboard_app
run: |
echo "DATABASE_URL=postgresql://postgres:[email protected]:5432/data_handler" >> $GITHUB_ENV
- name: Wait for Database to be Ready
run: |
for i in {1..30}; do
pg_isready -h 127.0.0.1 -p 5432 -U postgres && break || sleep 2;
done
- name: Verify PostgreSQL Port is Open
run: |
nc -zv 127.0.0.1 5432
- name: Run Tests for Dashboard_App
working-directory: ./apps/dashboard_app
Expand Down

0 comments on commit 98427e5

Please sign in to comment.