From 76c852d33411eb379bac8abc90925dae907d7685 Mon Sep 17 00:00:00 2001 From: xopiie <46599014+NadicaUzunova@users.noreply.github.com> Date: Fri, 19 Jan 2024 09:58:54 +0100 Subject: [PATCH] testing connection 3 --- .github/workflows/test_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 50ab21d..17c28dd 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -15,8 +15,8 @@ jobs: postgres: image: postgres:16 env: - POSTGRES_USER: postgres_user - POSTGRES_PASSWORD: postgres_pwd + POSTGRES_USER: ${{ secrets.POSTGRES_USER }} + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} options: >- --health-cmd pg_isready --health-interval 10s @@ -43,7 +43,7 @@ jobs: - name: Check PostgreSQL connection run: | sleep 10 # Wait for PostgreSQL to start - PGPASSWORD=$postgres_pwd psql -h localhost -U $postgres_user -d postgres -c "SELECT 1;" + PGPASSWORD="${{ secrets.POSTGRES_PASSWORD }}" psql -h localhost -U "${{ secrets.POSTGRES_USER }}" -d postgres -c "SELECT 1;" continue-on-error: true # Continue with the workflow even if the PostgreSQL connection test fails build_frontend: