Updated error handling in the example command tool.
Some checks failed
CI / test (push) Failing after 16s
Some checks failed
CI / test (push) Failing after 16s
This commit is contained in:
@@ -36,6 +36,16 @@ 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: |
|
||||
set +e
|
||||
./bin/triplex-example
|
||||
rc1=$?
|
||||
./bin/triplex-example --complete ABC-1234-D
|
||||
rc2=$?
|
||||
if [ $rc1 -ne 0 ] || [ $rc2 -ne 0 ]; then
|
||||
echo "Example failed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Example ran successfully"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user