Skip to content

Commit 357cdf1

Browse files
authored
CI-CD Updates (#150)
* Use new version of CI-CD Actions, checkout@v3 instead of checkout@v2 on all jobs * Use cSpell spell check, and use ubuntu-20.04 for formatting check * Add in bot formatting action
1 parent 84f903f commit 357cdf1

File tree

8 files changed

+218
-179
lines changed

8 files changed

+218
-179
lines changed

.github/.cSpellWords.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
CBMC
2+
CBOR
3+
CMOCK
4+
CMock
5+
Cmock
6+
Coverity
7+
DNDEBUG
8+
DUNITY
9+
EFFF
10+
MISRA
11+
MQTT
12+
Misra
13+
Wunused
14+
cbmc
15+
cbor
16+
cmock
17+
coverity
18+
ctest
19+
dfcc
20+
isystem
21+
lcov
22+
misra
23+
searcht
24+
sinclude
25+
strn
26+
utest

.github/workflows/ci.yml

Lines changed: 49 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone This Repo
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Build
1515
run: |
1616
sudo apt-get install -y lcov sed
@@ -34,46 +34,51 @@ jobs:
3434
- name: Check Coverage
3535
uses: FreeRTOS/CI-CD-Github-Actions/coverage-cop@main
3636
with:
37-
path: ./build/coverage.info
37+
coverage-file: ./build/coverage.info
38+
3839
complexity:
3940
runs-on: ubuntu-latest
4041
steps:
41-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
4243
- name: Check complexity
4344
uses: FreeRTOS/CI-CD-Github-Actions/complexity@main
4445
with:
4546
path: ./
47+
4648
doxygen:
4749
runs-on: ubuntu-latest
4850
steps:
49-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v3
5052
- name: Run doxygen build
5153
uses: FreeRTOS/CI-CD-Github-Actions/doxygen@main
5254
with:
5355
path: ./
56+
5457
spell-check:
5558
runs-on: ubuntu-latest
5659
steps:
5760
- name: Clone This Repo
58-
uses: actions/checkout@v2
61+
uses: actions/checkout@v3
5962
- name: Run spellings check
6063
uses: FreeRTOS/CI-CD-Github-Actions/spellings@main
6164
with:
6265
path: ./
66+
6367
formatting:
6468
runs-on: ubuntu-20.04
6569
steps:
66-
- uses: actions/checkout@v2
70+
- uses: actions/checkout@v3
6771
- name: Check formatting
6872
uses: FreeRTOS/CI-CD-Github-Actions/formatting@main
6973
with:
7074
path: ./
75+
7176
git-secrets:
7277
runs-on: ubuntu-latest
7378
steps:
74-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v3
7580
- name: Checkout awslabs/git-secrets
76-
uses: actions/checkout@v2
81+
uses: actions/checkout@v3
7782
with:
7883
repository: awslabs/git-secrets
7984
ref: master
@@ -84,11 +89,12 @@ jobs:
8489
run: |
8590
git-secrets --register-aws
8691
git-secrets --scan
92+
8793
custom-standard-c-headers:
8894
runs-on: ubuntu-latest
8995
steps:
9096
- name: Clone This Repo
91-
uses: actions/checkout@v2
97+
uses: actions/checkout@v3
9298
- name: Build
9399
run: |
94100
mkdir -p override-include
@@ -99,22 +105,50 @@ jobs:
99105
-DBUILD_CLONE_SUBMODULES=ON \
100106
-DCMAKE_C_FLAGS='-Wall -Wextra -I../override-include'
101107
make -C build/ coverity_analysis
108+
102109
memory_statistics:
103110
runs-on: ubuntu-latest
104111
steps:
105-
- uses: actions/checkout@v2
112+
- uses: actions/checkout@v3
106113
with:
107-
submodules: 'recursive'
114+
submodules: "recursive"
108115
- name: Install Python3
109-
uses: actions/setup-python@v2
116+
uses: actions/setup-python@v3
110117
with:
111-
python-version: '3.11.0'
118+
python-version: "3.11.0"
112119
- name: Measure sizes
113120
uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main
114121
with:
115-
config: .github/memory_statistics_config.json
116-
check_against: docs/doxygen/include/size_table.md
122+
config: .github/memory_statistics_config.json
123+
check_against: docs/doxygen/include/size_table.md
124+
125+
link-verifier:
126+
runs-on: ubuntu-latest
127+
steps:
128+
- uses: actions/checkout@v3
129+
- name: Check Links
130+
env:
131+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+
uses: FreeRTOS/CI-CD-Github-Actions/link-verifier@main
133+
with:
134+
path: ./
135+
136+
verify-manifest:
137+
runs-on: ubuntu-latest
138+
steps:
139+
- uses: actions/checkout@v3
140+
with:
141+
submodules: true
142+
fetch-depth: 0
143+
144+
- name: Run manifest verifier
145+
uses: FreeRTOS/CI-CD-GitHub-Actions/manifest-verifier@main
146+
with:
147+
path: ./
148+
fail-on-incorrect-version: true
149+
117150
proof_ci:
151+
if: ${{ github.event.pull_request }}
118152
runs-on: cbmc_ubuntu-latest_64-core
119153
steps:
120154
- name: Set up CBMC runner

.github/workflows/formatting.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Format Pull Request Files
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
env:
8+
bashPass: \033[32;1mPASSED -
9+
bashInfo: \033[33;1mINFO -
10+
bashFail: \033[31;1mFAILED -
11+
bashEnd: \033[0m
12+
13+
jobs:
14+
Formatting:
15+
name: Run Formatting Check
16+
if: ${{ github.event.issue.pull_request }} &&
17+
( ( github.event.comment.body == '/bot run uncrustify' ) ||
18+
( github.event.comment.body == '/bot run formatting' ) )
19+
runs-on: ubuntu-20.04
20+
steps:
21+
- name: Apply Formatting Fix
22+
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
23+
id: check-formatting

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
ref: ${{ github.event.inputs.commit_id }}
2222
- name: Configure git identity
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install ZIP tools
5454
run: sudo apt-get install zip unzip
5555
- name: Checkout code
56-
uses: actions/checkout@v2
56+
uses: actions/checkout@v3
5757
with:
5858
ref: ${{ github.event.inputs.commit_id }}
5959
path: coreJSON

MISRA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ _Ref 14.3.1_
2626
- MISRA C-2012 Rule 14.3 False positive as the static analysis tool believes
2727
i can never be larger than SIZE_MAX - HEX_ESCAPE_LENGTH. This can be proven as
2828
a bug by setting i to be 18446744073709551615UL at initial assignment, then require
29-
start != NULL before assigning the vaue of i to start. This creates a case
29+
start != NULL before assigning the value of i to start. This creates a case
3030
where i should be large enough to hit the else statement, but the tool still flags
3131
this as invariant.

0 commit comments

Comments
 (0)