Skip to content

Commit

Permalink
Add initdb
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 3, 2024
1 parent c6da7b7 commit 0c25b2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:
PGUSERNAME: preflight_test_project_next_js_passing
PGPASSWORD: preflight_test_project_next_js_passing
steps:
# - run: echo "$(pg_config --bindir)" >> $GITHUB_PATH
- run: echo "$(pg_config --bindir)" >> $GITHUB_PATH
- name: Start preinstalled PostgreSQL on Ubuntu
run: |
# echo "$(pg_config --bindir)" >> $GITHUB_PATH
# export PGDATA="$RUNNER_TEMP/pgdata"
# mkdir -p $PGDATA
# pg_ctl start
export PGDATA="$RUNNER_TEMP/pgdata"
mkdir -p "$PGDATA"
initdb -D "$PGDATA"
pg_ctl start
# sudo systemctl start postgresql.service
# pg_isready
- name: Create database user
Expand Down

0 comments on commit 0c25b2c

Please sign in to comment.