Skip to content

Commit

Permalink
CI: not failing attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP committed Oct 20, 2023
1 parent 9d31cc8 commit c5c78c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,6 @@ jobs:
- name: Run unit tests
run: go run mage.go coverage

- name: Check Envoy example is spinning up
run: |
ENVOY_CONTAINER_NAME="envoy-envoy-1"
go run mage.go runEnvoyExample &
TIMEOUT=5
while [ $TIMEOUT -gt 0 ]; do
exit_code=$(docker inspect -f '{{.State.ExitCode}}' $ENVOY_CONTAINER_NAME)
if [ $exit_code -ne 0 ]; then
echo "Envoy example failed to start"
exit 1
fi
sleep 1 # Wait for 1 second before checking again for up to TIMEOUT times
((TIMEOUT--))
done
- name: Run e2e tests
shell: bash
run: >
Expand Down
2 changes: 1 addition & 1 deletion example/envoy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- --log-path
- /home/envoy/logs/envoy.log
volumes:
- ../build:/build
- ../../build:/build
- .:/conf
- logs:/home/envoy/logs:rw
ports:
Expand Down

0 comments on commit c5c78c1

Please sign in to comment.