Skip to content

Commit 5415045

Browse files
ci: Check for uncommited files in profile-controller unit tests
Suggested-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> Signed-off-by: Christian Heusel <christian@heusel.eu>
1 parent c96857a commit 5415045

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/profile_controller_unit_test.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,15 @@ jobs:
2828
run: |
2929
cd components/profile-controller
3030
make test
31+
32+
- name: Check if there are uncommitted file changes
33+
working-directory: components/profile-controller
34+
run: |
35+
clean=$(git status --porcelain)
36+
if [[ -z "$clean" ]]; then
37+
echo "Empty git status --porcelain: $clean"
38+
else
39+
echo "Uncommitted file changes detected: $clean"
40+
git diff
41+
exit 1
42+
fi

0 commit comments

Comments
 (0)