ci: test windows build with a ping after start

This commit is contained in:
Zaiming (Stone) Shi 2023-05-24 22:14:27 +02:00
parent 382ecf9d5c
commit a1b8e2a42a
1 changed files with 8 additions and 2 deletions

View File

@ -111,8 +111,14 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
run: | run: |
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
Start-Sleep -s 5 Start-Sleep -s 10
echo "EMQX started" $pingOutput = ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx ping
if ($pingOutput = 'pong') {
echo "EMQX started OK"
} else {
echo "Failed to ping EMQX $pingOutput"
Exit 1
}
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
echo "EMQX stopped" echo "EMQX stopped"
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install