Remove State Dump #116
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
name: Docker Compose Up Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
docker-compose-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Run Docker Compose | |
run: docker compose up -d | |
- name: Sleep | |
run: sleep 60 | |
- name: Check services running | |
run: | | |
if docker compose ps -a --filter="status=exited" --services | grep -v anvil-advance-chain-script | xargs grep -q; then | |
echo "Some services are not running" | |
exit 1 | |
fi | |
# TODO: we should also add https://docs.docker.com/reference/dockerfile/#healthcheck to the aggregator and operator docker images | |
# then we could check on their health status (maybe the processes are still running, but they are logging a lot of errors and we want to catch that) | |
# - name: Check services health | |
# run: | | |
# if docker-compose -f docker-compose.yml ps -q | xargs docker inspect -f '{{ .State.Health.Status }}' | grep -v healthy; then | |
# echo "Some services are not healthy" | |
# exit 1 | |
# fi |