Skip to content

Commit 8ea164f

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 e4fa162 commit 8ea164f

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
@@ -46,3 +46,15 @@ jobs:
4646
git diff
4747
exit 1
4848
fi
49+
50+
- name: Check if there are uncommitted file changes
51+
working-directory: components/profile-controller
52+
run: |
53+
clean=$(git status --porcelain)
54+
if [[ -z "$clean" ]]; then
55+
echo "Empty git status --porcelain: $clean"
56+
else
57+
echo "Uncommitted file changes detected: $clean"
58+
git diff
59+
exit 1
60+
fi

0 commit comments

Comments
 (0)