Skip to content

Commit

Permalink
Add e2e to GitHub Action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sistracia committed Mar 25, 2024
1 parent b3d4596 commit 912b8c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
[registry."${{ secrets.DOCKER_REGISTRY }}"]
http = true
insecure = true
-
name: Run end-to-end testing
run: docker compose -f ./web/docker-compose.e2e.yaml up --build --abort-on-container-exit --exit-code-from e2e
-
name: Teardown end-to-end testing
if: always()
run: docker compose -f ./web/docker-compose.e2e.yaml down
-
name: Build and push to local registry
uses: docker/build-push-action@v5
Expand Down
9 changes: 7 additions & 2 deletions web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ copy_email:

publish_project: publish_client publish_server copy_client copy_email

test_e2e:
docker compose -f docker-compose.e2e.yaml up --build --abort-on-container-exit --exit-code-from e2e && docker compose down
test_e2e_setup:
docker compose -f docker-compose.e2e.yaml up --build --abort-on-container-exit --exit-code-from e2e

test_e2e_teardown:
docker compose -f docker-compose.e2e.yaml down

test_e2e: test_e2e_setup test_e2e_teardown

0 comments on commit 912b8c2

Please sign in to comment.