mirror of
https://github.com/azaion/loader.git
synced 2026-04-26 17:06:33 +00:00
4f5fe70f3f
- Added 'e2e/results/' to .gitignore to exclude end-to-end test results. - Deleted the outdated Woodpecker build-arm.yml file as it is no longer needed. - Introduced a new e2e-runner service in docker-compose.test.yml to facilitate end-to-end testing with dependencies on other services.
32 lines
812 B
YAML
32 lines
812 B
YAML
when:
|
|
event: [push, pull_request, manual]
|
|
branch: [dev, stage, main]
|
|
|
|
labels:
|
|
platform: arm64
|
|
|
|
steps:
|
|
- name: e2e
|
|
image: docker:24
|
|
environment:
|
|
COMPOSE_PROJECT_NAME: loader-e2e
|
|
commands:
|
|
- cd e2e
|
|
- mkdir -p results
|
|
- docker compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from e2e-runner
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- name: e2e-report
|
|
image: docker:24
|
|
when:
|
|
status: [success, failure]
|
|
environment:
|
|
COMPOSE_PROJECT_NAME: loader-e2e
|
|
commands:
|
|
- cd e2e
|
|
- docker compose -f docker-compose.test.yml down -v || true
|
|
- test -f results/report.csv && cat results/report.csv || echo "no report"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|