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:
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
|
||||
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue