Skip to content

Commit

Permalink
👷 Update Playwright CI and Docker Compose to use depends on backend a…
Browse files Browse the repository at this point in the history
…nd mailcatcher (#468)
  • Loading branch information
tiangolo authored Oct 26, 2024
1 parent d41aecb commit caff0cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
env:
DEPOT_PROJECT_ID: ${{ vars.DEPOT_PROJECT_ID }}
- run: docker compose down -v --remove-orphans
- run: docker compose up -d --wait backend
- name: Run Playwright tests
run: docker compose run --rm playwright npx playwright test --fail-on-flaky-tests --trace=retain-on-failure --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- run: docker compose down -v --remove-orphans
Expand Down
3 changes: 3 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ services:
- VITE_API_URL=http://backend:8000
- NODE_ENV=production
ipc: host
depends_on:
- backend
- mailcatcher
environment:
- VITE_API_URL=http://backend:8000
- MAILCATCHER_HOST=http://mailcatcher:1080
Expand Down

0 comments on commit caff0cc

Please sign in to comment.