Skip to content

Commit

Permalink
use make target
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed May 10, 2024
1 parent 5f54792 commit 2615f63
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,15 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_READ_ONLY }}

- name: Build zetanode
run: |
make zetanode
- name: Start Private Network
run: |
cd contrib/localnet/
docker compose up -d zetacore0 zetacore1 zetaclient0 zetaclient1 eth bitcoin
- name: Start Test
run: make start-e2e-test

- name: Run E2E Test
# use docker logs -f rather than docker attach to make sure we get the initial logs
- name: Watch Test
run: |
cd contrib/localnet
docker-compose up orchestrator --exit-code-from orchestrator
if [ $? -ne 0 ]; then
echo "E2E Test Failed"
exit 1
fi
container_id=$(docker ps --filter "ancestor=orchestrator:latest" --format "{{.ID}}")
docker logs -f "${container_id}" &
exit $(docker wait "${container_id}")
- name: Notify Slack on Failure
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/develop'
Expand Down

0 comments on commit 2615f63

Please sign in to comment.