Skip to content

Commit ca40dac

Browse files
committed
ci: show git status
The `make check` target should not result in any modifications to the source tree. Adding these `git` commands helps ensure that the working directory remains clean after tests run. `git status` is added for visibility into any changes, and `git describe --dirty` will cause the job to fail if the working directory is not clean, preventing accidental uncommitted changes generated by the test suite. Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 2ad0b60 commit ca40dac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ jobs:
121121
echo run tests as rootless in a user namespace
122122
unshare -r make check ASAN_OPTIONS=detect_leaks=false || (cat test-suite.log; exit 1)
123123
124+
git status
125+
124126
# check that the working dir is clean
125127
git describe --broken --dirty --all | grep -qv dirty
126128
;;

0 commit comments

Comments
 (0)