|
6 | 6 | branches: [main] |
7 | 7 | workflow_dispatch: |
8 | 8 | jobs: |
9 | | - spell-check: |
| 9 | + formatting: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | | - - name: Checkout Parent Repo |
13 | | - uses: actions/checkout@v2 |
| 12 | + - uses: actions/checkout@v3 |
| 13 | + - name: Check formatting of FreeRTOS-Kernel Source Files |
| 14 | + uses: FreeRTOS/CI-CD-Github-Actions/formatting@v2 |
14 | 15 | with: |
15 | | - ref: main |
16 | | - repository: aws/aws-iot-device-sdk-embedded-C |
17 | | - path: main |
18 | | - - name: Clone This Repo |
19 | | - uses: actions/checkout@v2 |
| 16 | + exclude-dirs: portable |
| 17 | + |
| 18 | + - name: Check formatting of MPU Wrappers |
| 19 | + if: success() || failure() |
| 20 | + uses: FreeRTOS/CI-CD-Github-Actions/formatting@v2 |
20 | 21 | with: |
21 | | - path: ./kernel |
22 | | - - name: Install spell |
23 | | - run: | |
24 | | - sudo apt-get install spell |
25 | | - sudo apt-get install util-linux |
26 | | - - name: Check spelling |
27 | | - run: | |
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 |
33 | | - exit 0 |
34 | | - else |
35 | | - exit 1 |
36 | | - fi |
37 | | - formatting: |
38 | | - runs-on: ubuntu-20.04 |
| 22 | + path: portable/Common |
| 23 | + |
| 24 | + - name: Check formatting of Heap Files |
| 25 | + if: success() || failure() |
| 26 | + uses: FreeRTOS/CI-CD-Github-Actions/formatting@v2 |
| 27 | + with: |
| 28 | + path: portable/Common |
| 29 | + |
| 30 | + spell-check: |
| 31 | + runs-on: ubuntu-latest |
| 32 | + steps: |
| 33 | + - name: Clone This Repo |
| 34 | + uses: actions/checkout@v3 |
| 35 | + - name: Run spellings check |
| 36 | + uses: FreeRTOS/CI-CD-GitHub-Actions/rust-spell-check@v2 |
| 37 | + with: |
| 38 | + path: ./ |
| 39 | + |
| 40 | + link-verifier: |
| 41 | + runs-on: ubuntu-latest |
39 | 42 | steps: |
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 |
44 | | - run: | |
45 | | - uncrustify --version |
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 |
48 | | - run: | |
49 | | - set +e |
50 | | - grep --exclude="*.md" --exclude-dir=".git" -rnI -e "[[:blank:]]$" . |
51 | | - if [ "$?" = "0" ]; then |
52 | | - echo "Files have trailing whitespace." |
53 | | - exit 1 |
54 | | - else |
55 | | - exit 0 |
56 | | - fi |
57 | | - shell: bash |
58 | | - - name: Check for CRLF |
59 | | - working-directory: ${{ inputs.path }} |
60 | | - run: | |
61 | | - set +e |
62 | | - find . -path ./.git -prune -o -exec file {} + | grep "CRLF" |
63 | | - if [ "$?" = "0" ]; then |
64 | | - echo "Files have CRLF line endings." |
65 | | - exit 1 |
66 | | - else |
67 | | - exit 0 |
68 | | - fi |
69 | | - shell: bash |
| 43 | + - name: Clone This Repo |
| 44 | + uses: actions/checkout@v3 |
| 45 | + - name: Link Verificication |
| 46 | + uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@v2 |
70 | 47 |
|
71 | 48 | url-check: |
72 | 49 | runs-on: ubuntu-latest |
|
78 | 55 | - name: URL Checker |
79 | 56 | run: | |
80 | 57 | bash kernel/.github/actions/url_verifier.sh kernel |
| 58 | +
|
| 59 | + verify-manifest: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@v3 |
| 63 | + with: |
| 64 | + submodules: true |
| 65 | + fetch-depth: 0 |
| 66 | + |
| 67 | + - name: Run manifest verifier |
| 68 | + uses: FreeRTOS/CI-CD-GitHub-Actions/manifest-verifier@v2 |
| 69 | + with: |
| 70 | + path: ./ |
| 71 | + fail-on-incorrect-version: true |
0 commit comments