From 16a23700e4fe17843e30b0038d2fe67a9f2a5506 Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Thu, 30 Jan 2025 09:25:53 +0000 Subject: [PATCH] Use formatting check in FreeRTOS/CI-CD-Github-Actions Signed-off-by: Gaurav Aggarwal --- .github/workflows/ci.yml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 003b23dd92..ba0fd90273 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -197,30 +197,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Install Uncrustify - run: sudo apt-get install uncrustify - - name: Check Formatting With Uncrustify - run: find . -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} + - - name: Check For Trailing Whitespace - run: | - set +e - grep --exclude="README.md" -rnI -e "[[:blank:]]$" . - if [ "$?" = "0" ]; then - echo "Files have trailing whitespace." - exit 1 - else - exit 0 - fi - - name: Check for CRLF - 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 + - name: Check formatting + uses: FreeRTOS/CI-CD-Github-Actions/formatting@main + with: + path: ./ doxygen: runs-on: ubuntu-latest steps: