mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
* Remove non needed spell checks * FreeRTOS Kernel Spelling Update (#170) * FreeRTOS Kernel Spelling Update * Added spell check to kernel repository. * Fixed small spelling errors in various kernel source files. * Added documentation for spellcheck. Note: Only kernel files are checked for spelling, and portable files are ignored. * Fix exit 0 * Remove spell * add echo * Call script from ci * Fix script location * Print pwd * Fix script * Fix script * Remove some lines from script * uncomment lines and fix exit * use bash instead of sh * Move url checker to the action directory * Separate spell and url checkers * Fix bad merge from master * Fix yml file error * Add another step to the url checker Co-authored-by: Carl Lundin <53273776+lundinc2@users.noreply.github.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: CI Checks
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
jobs:
|
|
spell-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Parent Repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
repository: aws/aws-iot-device-sdk-embedded-C
|
|
path: main
|
|
- name: Clone This Repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: ./kernel
|
|
- name: Install spell
|
|
run: |
|
|
sudo apt-get install spell
|
|
sudo apt-get install util-linux
|
|
- name: Check spelling
|
|
run: |
|
|
PATH=$PATH:main/tools/spell
|
|
# Make sure that the portable directory is not included in the spellcheck.
|
|
sed -i 's/find $DIRNAME/find $DIRNAME -not -path '*portable*'/g' main/tools/spell/find-unknown-comment-words
|
|
find-unknown-comment-words --directory kernel/
|
|
if [ "$?" = "0" ]; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|
|
url-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone This Repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: ./kernel
|
|
- name: URL Checker
|
|
run: |
|
|
bash kernel/.github/actions/url_verifier.sh kernel
|