mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set PGPASSWORD in env to call psql without password prompt
This commit is contained in:
parent
b59db0629d
commit
f43ad01b89
1 changed files with 2 additions and 1 deletions
3
.github/workflows/run-tests.yaml
vendored
3
.github/workflows/run-tests.yaml
vendored
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
- name: Database Migration
|
||||
run: |
|
||||
yarn workspace @omnivore/db migrate
|
||||
psql --host localhost --port ${{ job.services.postgres.ports[5432] }} --user postgres --password -c "CREATE USER app_user WITH ENCRYPTED PASSWORD 'app_pass';GRANT omnivore_user to app_user;"
|
||||
psql -p ${{ job.services.postgres.ports[5432] }} -U postgres -c "CREATE USER app_user WITH ENCRYPTED PASSWORD 'app_pass';GRANT omnivore_user to app_user;"
|
||||
env:
|
||||
PG_HOST: localhost
|
||||
PG_PORT: ${{ job.services.postgres.ports[5432] }}
|
||||
|
|
@ -74,6 +74,7 @@ jobs:
|
|||
PG_PASSWORD: postgres
|
||||
PG_DB: omnivore_test
|
||||
ELASTIC_URL: http://localhost:${{ job.services.elastic.ports[9200] }}/
|
||||
PGPASSWORD: postgres # This is required for the psql command to work without a password prompt
|
||||
- name: TypeScript, Lint, Tests
|
||||
run: |
|
||||
source ~/.nvm/nvm.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue