Skip to content

Commit

Permalink
postgres setup
Browse files Browse the repository at this point in the history
  • Loading branch information
j4qfrost committed May 3, 2024
1 parent d627d0e commit 9971c35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
TEST_DIR: packages/core
services:
postgres:
image: postgres:14.5
image: postgres:16.2
env:
POSTGRES_USER: conduit_test_user
POSTGRES_PASSWORD: conduit!
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,13 @@ jobs:
TEST_VALUE: 1
TEST_BOOL: true
steps:
- name: Start PostgreSQL
run: |
mkdir -p $HOME/datadir
initdb -U postgres -D $HOME/datadir
pg_ctl -o "-p ${{ env.POSTGRES_PORT }}" -D $HOME/datadir start
- name: Create database
env:
PGUSER: postgres
PGPORT: 15432
run: |
createuser -s -e -g postgres ${{ env.POSTGRES_USER }}
psql --command="ALTER USER ${{ env.POSTGRES_USER }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
createdb --owner=${{ env.POSTGRES_USER }} ${{ env.POSTGRES_DB }}
- name: Setup PostgreSQL for Linux/macOS/Windows
uses: ikalnytskyi/action-setup-postgres@v6
with:
username: conduit_test_user
password: conduit!
database: conduit_test_db
port: 15432
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
Expand Down

0 comments on commit 9971c35

Please sign in to comment.