Skip to content

Commit

Permalink
CI run sequence to build, apply fixtures and test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Feb 5, 2024
1 parent dfcf5ed commit 8d94396
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ jobs:
- name: Build frontend
run: yarn run build

- name: Run web service and E2E tests
run: docker compose -f docker-compose-e2e-tests.yml up --exit-code-from e2e-tests
- name: Run services and E2E tests
run: |
docker compose -f docker-compose-e2e-tests.yml up nginx web db --detach --wait
docker compose cp e2e_testing/fixtures/002_carousel.sql db:/002_carousel.sql
docker compose exec -u postgres db psql postgres postgres -f /002_carousel.sql
docker compose -f docker-compose-e2e-tests.yml run e2e-tests
docker compose down
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,6 @@ services:
ports:
- "9998:9998"

e2e-tests:
build:
context: e2e_testing
args:
- BASE_URL=http://web:8063
environment:
- CI=true
depends_on:
nginx:
condition: service_healthy
links:
- nginx

volumes:
opensearch-data1:
django_media:
Expand Down

0 comments on commit 8d94396

Please sign in to comment.