Skip to content

Commit 5c4fa5e

Browse files
committed
Use new version of CI-CD Actions
1 parent b9f488a commit 5c4fa5e

File tree

3 files changed

+77
-56
lines changed

3 files changed

+77
-56
lines changed

.github/.cSpellWords.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CMOCK
2+
CMock
3+
Cmock
4+
Coverity
5+
MISRA
6+
Misra
7+
coverity
8+
misra

.github/workflows/ci.yml

Lines changed: 47 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -6,67 +6,44 @@ on:
66
branches: [main]
77
workflow_dispatch:
88
jobs:
9-
spell-check:
9+
formatting:
1010
runs-on: ubuntu-latest
1111
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
1415
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
2021
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
3942
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
7047

7148
url-check:
7249
runs-on: ubuntu-latest
@@ -78,3 +55,17 @@ jobs:
7855
- name: URL Checker
7956
run: |
8057
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

cspell.config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
3+
version: '0.2'
4+
# Allows things like stringLength
5+
allowCompoundWords: true
6+
useGitignore: true
7+
# Could split this up? And do a dictionary for each repo?
8+
# But feel like if this isn't super slow
9+
# That having just one single dictionary might be nicer?
10+
dictionaryDefinitions:
11+
- name: freertos-words
12+
path: '.github/.cSpellWords.txt'
13+
addWords: true
14+
dictionaries:
15+
- freertos-words
16+
ignorePaths:
17+
- 'node_modules'
18+
- '.cSpellWords.txt'
19+
- 'dependency'
20+
- 'docs'
21+
- 'ThirdParty'
22+

0 commit comments

Comments
 (0)