From 87096e1d357aea51df705b5d438bef05ad002e72 Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Thu, 17 Jun 2021 12:28:59 +0530 Subject: [PATCH] Set pgpassword in env. --- .github/workflows/on-pr.yml | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 961c6c40b..7f9ea6fae 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -63,4 +63,4 @@ jobs: - name: Run unit tests run: - PGPASSWORD=password make statedifftest \ No newline at end of file + make statedifftest \ No newline at end of file diff --git a/Makefile b/Makefile index 1bdd4ad22..b63415793 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ PORT = 5432 USER = postgres PASSWORD = password +# Set env variable +export PGPASSWORD=$(PASSWORD) + #Test TEST_DB = vulcanize_testing TEST_CONNECT_STRING = postgresql://$(USER):$(PASSWORD)@$(HOST_NAME):$(PORT)/$(TEST_DB)?sslmode=disable