Skip to content

Commit 16a2370

Browse files
committed
Use formatting check in FreeRTOS/CI-CD-Github-Actions
Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent 8616eb3 commit 16a2370

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -197,30 +197,10 @@ jobs:
197197
runs-on: ubuntu-20.04
198198
steps:
199199
- uses: actions/checkout@v2
200-
- name: Install Uncrustify
201-
run: sudo apt-get install uncrustify
202-
- name: Check Formatting With Uncrustify
203-
run: find . -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} +
204-
- name: Check For Trailing Whitespace
205-
run: |
206-
set +e
207-
grep --exclude="README.md" -rnI -e "[[:blank:]]$" .
208-
if [ "$?" = "0" ]; then
209-
echo "Files have trailing whitespace."
210-
exit 1
211-
else
212-
exit 0
213-
fi
214-
- name: Check for CRLF
215-
run: |
216-
set +e
217-
find . -path ./.git -prune -o -exec file {} + | grep "CRLF"
218-
if [ "$?" = "0" ]; then
219-
echo "Files have CRLF line endings."
220-
exit 1
221-
else
222-
exit 0
223-
fi
200+
- name: Check formatting
201+
uses: FreeRTOS/CI-CD-Github-Actions/formatting@main
202+
with:
203+
path: ./
224204
doxygen:
225205
runs-on: ubuntu-latest
226206
steps:

0 commit comments

Comments
 (0)