diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..074aee9 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -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