mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 02:24:29 +00:00
Run idempotent exaples as tests in CI (#7)
This commit is contained in:
9
.github/workflows/generate.yml
vendored
9
.github/workflows/generate.yml
vendored
@@ -22,5 +22,10 @@ jobs:
|
||||
env:
|
||||
M3O_API_TOKEN: ${{ secrets.M3O_API_TOKEN }}
|
||||
run: |
|
||||
cd examples/helloworld/call/callTheHelloworldService
|
||||
go run main.go
|
||||
# stream is temporarily excluded as it hangs forever because test does not close connection
|
||||
# @TODO remove "idempotent: true" from stream example
|
||||
O=$(find . -name ".run" | grep -v stream | xargs -n1 dirname | xargs -n1 go run)
|
||||
echo $O
|
||||
if grep -q Detail "$O"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user