0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: fix postgres setup in integration test (#1846)

This commit is contained in:
Gao Sun 2022-09-01 13:54:40 +08:00 committed by GitHub
parent 4bafde5bb6
commit fa5a775205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,17 +71,8 @@ jobs:
pnpm prepack
# Setup environment
- name: Start Postgres (Linux)
if: runner.os == 'Linux'
run: |
sudo service postgresql start
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
- name: Start Postgres (macOS)
if: runner.os == 'macOS'
run: |
pg_ctl -D /usr/local/var/postgres start
psql postgres -c "CREATE USER postgres WITH SUPERUSER PASSWORD 'postgres';"
- name: Setup Postgres
uses: ikalnytskyi/action-setup-postgres@v3
- uses: actions/download-artifact@v3
with: