Add variables for test database
This commit is contained in:
1 parent
2e217a23d7
commit
6755bf05fa
1 file changed
+5
-5
@@ -14,11 +14,11 @@ jobs:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: test_user
|
POSTGRES_USER: ${{ secrets.TEST_PG_USER }}
|
||||||
POSTGRES_PASSWORD: test_password
|
POSTGRES_PASSWORD: ${{ secrets.TEST_PG_PASSWORD }}
|
||||||
POSTGRES_DB: test_db
|
POSTGRES_DB: ${{ secrets.TEST_PG_DATABASE }}
|
||||||
ports:
|
ports:
|
||||||
- 5433:5432
|
- ${{ secrets.TEST_PG_PORT }}:5432
|
||||||
# Ensure Postgres is completely booted before running tests
|
# Ensure Postgres is completely booted before running tests
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd "pg_isready -U test_user -d test_db"
|
--health-cmd "pg_isready -U test_user -d test_db"
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
working-directory: ./api
|
working-directory: ./api
|
||||||
run: npx dbmate up
|
run: npx dbmate up
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: "postgres://test_user:test_password@saber.home.lan:5433/test_db?sslmode=disable"
|
DATABASE_URL: "postgres://${{ secrets.TEST_PG_USER }}:${{ secrets.TEST_PG_PASSWORD }}@${{ gitea.SERVER_URL }}:@{{ secrets.TEST_PG_PORT }}/${{ secrets.TEST_PG_DATABASE }}?sslmode=disable"
|
||||||
|
|
||||||
# - name: Generate PgTyped Types
|
# - name: Generate PgTyped Types
|
||||||
# run: npm run pgtyped:compile
|
# run: npm run pgtyped:compile
|
||||||
|
|||||||
Reference in new issue
Block a user