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:
parent
4bafde5bb6
commit
fa5a775205
1 changed files with 2 additions and 11 deletions
13
.github/workflows/integration-test.yml
vendored
13
.github/workflows/integration-test.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue