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: