Skip to content

Commit

Permalink
test(e2e): fix docker-compose setup (#675)
Browse files Browse the repository at this point in the history
* test(e2e): fix docker-compose setup (#673)

* try fix ci

* empty commit

* fix

* Empty commit

---------

Co-authored-by: oXtxNt9U <[email protected]>
  • Loading branch information
sebastijankuzner and oXtxNt9U authored Aug 6, 2024
1 parent 511d559 commit ab4f8a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jobs:
run: pnpm run build

- name: Docker ${{ matrix.name }}
run: sudo chmod -R 777 tests/e2e/${{ matrix.name }}/nodes && cd tests/e2e/${{ matrix.name }} && docker-compose up -d
run: sudo chmod -R 777 tests/e2e/${{ matrix.name }}/nodes && cd tests/e2e/${{ matrix.name }} && docker compose up -d

- name: Running checks for ${{ matrix.name }}
run: |
container_id=$(docker ps -a | grep 'consensus_checks' | awk '{print $1}')
container_id=$(docker ps -a | grep 'consensus-checks' | awk '{print $1}')
while docker ps | grep -q $container_id; do echo "checks running..."; sleep 5; done
exit_code=$(docker container inspect $container_id --format='{{.State.ExitCode}}')
if [ "$exit_code" != "0" ]; then
Expand All @@ -69,16 +69,16 @@ jobs:
fi
- name: Show logs - node0
if: always()
run: docker logs consensus_node0_1
run: docker logs consensus-node0-1
- name: Show logs - node1
if: always()
run: docker logs consensus_node1_1
run: docker logs consensus-node1-1
- name: Show logs - node2
if: always()
run: docker logs consensus_node2_1
run: docker logs consensus-node2-1
- name: Show logs - node3
if: always()
run: docker logs consensus_node3_1
run: docker logs consensus-node3-1
- name: Show logs - node4
if: always()
run: docker logs consensus_node4_1
run: docker logs consensus-node4-1

0 comments on commit ab4f8a4

Please sign in to comment.