10 runs-on: ubuntu-latest
12 - name: Checkout Parent Repo
13 uses: actions/checkout@v2
16 repository: aws/aws-iot-device-sdk-embedded-C
18 - name: Clone This Repo
19 uses: actions/checkout@v2
24 sudo apt-get install spell
25 sudo apt-get install util-linux
26 - name: Check spelling
28 PATH=$PATH:main/tools/spell
29 # Make sure that the portable directory is not included in the spellcheck.
30 sed -i 's/find $DIRNAME/find $DIRNAME -not -path '*portable*'/g' main/tools/spell/find-unknown-comment-words
31 find-unknown-comment-words --directory kernel/ --lexicon ./kernel/.github/lexicon.txt
32 if [ "$?" = "0" ]; then
40 - uses: actions/checkout@v2
41 - name: Install Uncrustify
42 run: sudo apt-get install uncrustify=0.69.0+dfsg1-1build1
43 - name: Run Uncrustify
46 find . portable/MemMang/* portable/Common/* \( -name portable \) -prune -false -o -iname "*.[hc]" -exec uncrustify --check -c .github/uncrustify.cfg {} +
47 - name: Check For Trailing Whitespace
50 grep --exclude="*.md" --exclude-dir=".git" -rnI -e "[[:blank:]]$" .
51 if [ "$?" = "0" ]; then
52 echo "Files have trailing whitespace."
58 - name: Check for CRLF
59 working-directory: ${{ inputs.path }}
62 find . -path ./.git -prune -o -exec file {} + | grep "CRLF"
63 if [ "$?" = "0" ]; then
64 echo "Files have CRLF line endings."
72 runs-on: ubuntu-latest
74 - name: Clone This Repo
75 uses: actions/checkout@v2
80 bash kernel/.github/actions/url_verifier.sh kernel