Skip to content

Manager system monitor, persist to file, tests, misc #39

Manager system monitor, persist to file, tests, misc

Manager system monitor, persist to file, tests, misc #39

Workflow file for this run

name: smoke-test
on:
pull_request:
branches:
- main
jobs:
build-and-smoke-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Start Docker-in-Docker
run: |
sudo service docker start
sleep 5
- name: Build Docker image
run: docker build -t test-ubuntu .
- name: Start container
env:
ETH_ENDPOINT: ${{ secrets.ETH_ENDPOINT }}
run: |
docker run -d -p 80:80 -e ETH_ENDPOINT=$ETH_ENDPOINT --privileged --name smoke_test test-ubuntu tail -f /dev/null
- name: Run install script
run: |
docker exec smoke_test /bin/bash -c "source ./setup/install.sh --skip-req"
- name: Check ethereum-reader and manager are running properly both in legacy and v4 names
run: |
curl -f http://localhost/service/management-service/status
curl -f http://localhost/service/ethereum-reader/status
curl -f http://localhost/service/manager/status
curl -f http://localhost/service/boyar/status
- name: Cleanup container
if: always()
run: |
docker stop smoke_test
docker rm smoke_test
- name: Clean up Docker
if: always()
run: sudo service docker stop