Skip to content

Commit 91c0c6b

Browse files
committed
test: add GitHub Actions step for empty trailing lines check
1 parent 8b94742 commit 91c0c6b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,17 @@ jobs:
7373
else
7474
echo "Line length check passed."
7575
fi
76+
77+
- name: Check empty trailing lines
78+
run: |
79+
# Run check_empty_trailing_lines and capture output
80+
output=$(make check_empty_trailing_lines)
81+
82+
# Check if the output contains "ERROR"
83+
if echo "$output" | grep -q "ERROR"; then
84+
echo "::error::Empty trailing lines check failed. Some files have empty trailing lines."
85+
echo "$output"
86+
exit 1
87+
else
88+
echo "Empty trailing lines check passed."
89+
fi

0 commit comments

Comments
 (0)