Skip to content

Commit d8bde58

Browse files
committed
add pg to test in ci
1 parent 8be3b9b commit d8bde58

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/build-and-deploy-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ jobs:
8585
--image=${{ env.GCP_REGISTRY }}/${{ env.GCP_PROJECT_ID }}/${{ env.GCP_REPOSITORY }}/${{ env.GCP_IMAGE_NAME }}:${{ github.ref_name }} \
8686
--region=europe-west4 \
8787
--platform=managed \
88-
--allow-unauthenticated
88+
--allow-unauthenticated

.github/workflows/test-lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ jobs:
2323

2424
- name: Fmt check
2525
run: deno fmt --check
26-
26+
2727
test:
2828
runs-on: ubuntu-latest
2929
services:
30+
postgres:
31+
image: postgres:17
32+
env:
33+
POSTGRES_PASSWORD: password
34+
POSTGRES_USER: user
35+
POSTGRES_DB: core
36+
ports:
37+
- 5432:5432
3038
stripe-mock:
3139
image: stripe/stripe-mock:latest
3240
ports:

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build:app": "deno task --config ./packages/app/deno.json build",
1313
"build:core": "deno task --config ./packages/core/deno.json build",
1414
"test": "STRIPE_USE_MOCK=true deno test -A",
15-
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d postgres:latest",
15+
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d postgres:17",
1616
"db:migrate": "deno task --config ./packages/core/deno.json migrate -A",
1717
"stripe:create-products": "deno run -A --env-file=.env ./packages/core/src/stripe/scripts/createProducts.ts",
1818
"stripe:cli": "docker run --rm -it --env-file=.env stripe/stripe-cli:latest",

0 commit comments

Comments
 (0)