Skip to content

Commit

Permalink
feature(157): try and fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sojabio committed Jan 10, 2025
1 parent 484b695 commit 7551619
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.build.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
interval: 1s
timeout: 2s
retries: 100
environment:
- STRIPE_SECRET_KEY
depends_on:
db:
condition: service_healthy
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ services:
backend:
build: ./backend
env_file:
- .env
- .env.e2e
healthcheck:
test: 'curl --fail --request POST --header ''content-type: application/json'' --url ''http://localhost:4000'' --data ''{"query":"query { __typename }"}'' || exit 1'
interval: 1s
timeout: 2s
retries: 100
environment:
- STRIPE_SECRET_KEY
depends_on:
db:
condition: service_healthy
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
interval: 1s
timeout: 2s
retries: 100
environment:
- STRIPE_SECRET_KEY
depends_on:
db:
condition: service_healthy
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
interval: 1s
timeout: 2s
retries: 100
environment:
- STRIPE_SECRET_KEY
depends_on:
db:
condition: service_healthy
Expand Down
1 change: 1 addition & 0 deletions e2e/.env.e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
STRIPE_SECRET_KEY="sk_test_123"

0 comments on commit 7551619

Please sign in to comment.