mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 13:01:57 -04:00
ci: Enforce unix-style LF line endings
This commit is contained in:
parent
779402c39f
commit
151fb04ad1
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -47,13 +47,26 @@ jobs:
|
||||||
- name: Check For Trailing Whitespace
|
- name: Check For Trailing Whitespace
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
grep --exclude="README.md" --exclude-dir="portable" -rnI -e "[[:blank:]]$" .
|
grep --exclude="*.md" --exclude-dir=".git" -rnI -e "[[:blank:]]$" .
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
echo "Files have trailing whitespace."
|
echo "Files have trailing whitespace."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
- name: Check for CRLF
|
||||||
|
working-directory: ${{ inputs.path }}
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
find . -path ./.git -prune -o -exec file {} + | grep "CRLF"
|
||||||
|
if [ "$?" = "0" ]; then
|
||||||
|
echo "Files have CRLF line endings."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
||||||
url-check:
|
url-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue