Skip to content

Commit df2e14a

Browse files
committed
PGPASSWORD
1 parent 31ae3bd commit df2e14a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ jobs:
223223
echo "###### postgres ######"
224224
echo "######################"
225225
pgport=${{ job.services.postgres.ports[5432] }}
226-
227-
row_counts=`psql -h localhost -U postgres -W postgres -d qiita_test -p $pgport -c "SELECT SUM(c.reltuples) FROM pg_class c JOIN pg_namespace n on n.oid = c.relnamespace WHERE n.nspname = 'qiita' AND c.relkind = 'r' AND n.nspname NOT IN ('information_schema', 'pg_catalog');"`
226+
export PGPASSWORD=postgres
227+
row_counts=`psql -h localhost -U postgres -d qiita_test -p $pgport -c "SELECT SUM(c.reltuples) FROM pg_class c JOIN pg_namespace n on n.oid = c.relnamespace WHERE n.nspname = 'qiita' AND c.relkind = 'r' AND n.nspname NOT IN ('information_schema', 'pg_catalog');"`
228228
if [[ $row_counts != *" 0 "* ]]; then
229229
echo "***********";
230230
echo "There expected rows in a production system are not what's expected:";

0 commit comments

Comments
 (0)