Skip to content

Commit

Permalink
fix router online command; set up go; run go test manual;
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Aug 22, 2024
1 parent 3df0527 commit c96cd98
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ jobs:
sudo systemctl start ziti-router.service
sudo systemd-run --wait --quiet --service-type=oneshot --property=TimeoutStartSec=20s systemctl is-active ziti-router.service
_router_online_cmd="[[ $(ziti edge list edge-routers -j | jq '.data[0].isOnline') == "true" ]]"
_router_online_cmd="ziti edge list edge-routers -j | jq '.data[0].isOnline'"
ATTEMPTS=10
DELAY=3
until !((ATTEMPTS)) || ${_router_online_cmd}
until !((ATTEMPTS)) || [[ $(${_router_online_cmd}) == "true" ]]
do
(( ATTEMPTS-- ))
echo "Waiting for router to be online"
sleep ${DELAY}
done
if ${_router_online_cmd}
if [[ $(${_router_online_cmd}) == "true" ]]
then
echo "Router is online"
exit 0
Expand All @@ -240,6 +240,19 @@ jobs:
exit 1
fi
- name: Install Go
id: setup-go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Go Test Quickstart Manual
shell: bash
run: |
ZITI_CTRL_EDGE_ADVERTISED_ADDRESS=${ZITI_CTRL_ADVERTISED_ADDRESS} \
ZITI_CTRL_EDGE_ADVERTISED_PORT=${ZITI_CTRL_ADVERTISED_PORT} \
go test -v -count=1 -tags="quickstart manual" ./ziti/cmd/edge/...
- name: Debug Info
if: always()
shell: bash
Expand Down

0 comments on commit c96cd98

Please sign in to comment.