From fc2fe1eae4ea224e8bc6e7c3c3e098e8af9dc708 Mon Sep 17 00:00:00 2001 From: Chenglim Ear Date: Wed, 1 Nov 2023 08:46:22 -0700 Subject: [PATCH] set password for connecting to postgres and list db at start to confirm availability --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a3363d53..78bc86363 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,17 +60,19 @@ jobs: PGHOST: postgres PGDATABASE: disclosure-backend PGUSER: app_user + PGPASSWORD: app_password services: postgres: image: postgres:latest env: POSTGRES_USER: app_user - POSTGRES_DB: "disclosure-backend" + POSTGRES_DB: disclosure-backend POSTGRES_PASSWORD: app_password steps: - uses: actions/checkout@v3 - name: Create csv files run: | + psql -l make download make import python download/main.py