Updated error handling in the example command tool.
All checks were successful
CI / test (push) Successful in 18s
All checks were successful
CI / test (push) Successful in 18s
This commit is contained in:
@@ -36,6 +36,10 @@ jobs:
|
||||
run: go build -o ./bin/triplex-example ./cmd/triplex-example
|
||||
|
||||
- name: Run example
|
||||
run: ./bin/triplex-example && ./bin/triplex-example --complete ABC-1234-D && echo "Example ran successfully"
|
||||
|
||||
|
||||
run: |
|
||||
if ./bin/triplex-example && ./bin/triplex-example --complete ABC-123-D; then
|
||||
echo "Example ran successfully"
|
||||
else
|
||||
echo "Example failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user