Skip to content

Commit 1006be9

Browse files
committed
Test: github actions
Signed-off-by: jamshale <jamiehalebc@gmail.com>
1 parent c527b1a commit 1006be9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/scenario-integration-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ jobs:
6161
- name: Run Scenario Tests
6262
if: steps.check-if-scenarios-or-src-changed.outputs.run_tests != 'false'
6363
run: |
64-
# Build the docker image for testing
65-
docker build -t acapy-test -f docker/Dockerfile.run .
66-
cd scenarios
67-
poetry install --no-root
68-
poetry run pytest -m examples
64+
set -e # Fail fast
65+
for compose_file in $(find scenarios -name 'docker-compose.yml'); do
66+
echo "Running tests for: $compose_file"
67+
docker compose -f "$compose_file" up --build --abort-on-container-exit --exit-code-from controller
68+
docker compose -f "$compose_file" down -v
69+
done

0 commit comments

Comments
 (0)