-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: E2E Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
e2e-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out repository code | ||
|
||
# Setup Docker Buildx | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
# Starting background services | ||
- name: Start background services | ||
run: docker compose up -d --build localstack coordinator participant coordinator_db participant_db | ||
|
||
# Running e2e tests | ||
- name: Run e2e tests | ||
run: docker compose up --build e2e_test | ||
# Ensure the action fails if the e2e_test service fails | ||
continue-on-error: false | ||
|
||
# Cleanup | ||
- name: Cleanup | ||
if: always() | ||
run: docker compose down --volumes --remove-orphans |