Skip to content

Commit 952bb04

Browse files
Add exit code check to workflow that tests with soroban-examples diff step (#1596)
### What Add exit code validation to the diff step in the soroban-examples workflow. ### Why The workflow expects a diff to exist after regeneration. Without exit code checking, the step passes even when no diff is present, masking if the workflow stops working at patching the sdk.
1 parent 05f2a4f commit 952bb04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test-with-soroban-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
done
8181
8282
- name: Diff
83-
run: git diff
83+
run: (! git diff --exit-code) || (echo 'A diff is expected'; exit 1)
8484

8585
- name: Build soroban-examples
8686
env:

0 commit comments

Comments
 (0)