0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -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 pnpm prepack
# Setup environment # Setup environment
- name: Start Postgres (Linux) - name: Setup Postgres
if: runner.os == 'Linux' uses: ikalnytskyi/action-setup-postgres@v3
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';"
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with: