Skip to content

Commit 8c4a15d

Browse files
committed
build(tests): create sklok postgres database
Refs: #1
1 parent 9b43b7c commit 8c4a15d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: ikalnytskyi/action-setup-postgres@v7
1616
- name: Install postgres
17-
run: |
18-
psql postgresql://postgres:postgres@localhost:5432/postgres -f ./scripts/postgres/roles.sql
19-
psql postgresql://postgres:postgres@localhost:5432/postgres -c "\dg"
20-
psql postgresql://postgres:postgres@localhost:5432/postgres -c "SELECT 1"
21-
psql service=postgres -c "SELECT 1"
22-
psql -c "SELECT 1"
2317
env:
18+
PGSQL_SQLOK_PASSWORD: ${{ secrets.PGSQL_SQLOK_PASSWORD }}
2419
PGSERVICE: postgres
20+
run: |
21+
psql postgresql://postgres:postgres@localhost:5432/postgres -f ./scripts/postgres/roles.sql
22+
psql postgresql://postgres:postgres@localhost:5432/postgres -f ./scripts/postgres/database.sql
23+
psql postgresql://sqlok:$PGSQL_SQLOK_PASSWORD@localhost:5432/postgres -c "SELECT 1"
2524
- name: Setup Go ${{ matrix.go-version }}
2625
uses: actions/setup-go@v5
2726
with:

0 commit comments

Comments
 (0)