]> begriffs open source - freertos/blob - .github/workflows/ci.yml
Update SMP branch readme for port migration (#999)
[freertos] / .github / workflows / ci.yml
1 name: CI Checks
2 on:
3   push:
4     branches: ["**"]
5   pull_request:
6     branches: [main]
7   workflow_dispatch:
8 jobs:
9   spell-check:
10     runs-on: ubuntu-latest
11     steps:
12       - name: Checkout Parent Repo
13         uses: actions/checkout@v2
14         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
20         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   url-check:
38     runs-on: ubuntu-latest
39     steps:
40       - name: Clone This Repo
41         uses: actions/checkout@v2
42         with:
43             path: ./kernel
44       - name: URL Checker
45         run: |
46             bash kernel/.github/actions/url_verifier.sh kernel
47