-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (30 loc) · 1.31 KB
/
misspell.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: misspell
on: push
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: mbed-edge-misspell-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
static-checks:
runs-on: client
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install & run misspell
if: always()
run: |
# The original misspell is not maintained anymore, use the one
# from golangci instead
go install github.com/golangci/misspell/cmd/misspell@latest
# As we run it locally - the repo is already there, including
# the lib folder which has a lot of misspellings.
# We need to specify the folders/files to check.
misspell -error -i mosquitto .github blept-example byte-order \
c-api-stress-tester cmake config device-interface examples-common \
examples-common-2 include mqttpt-example pt-example \
simple-js-examples/*.js simple-js-examples/*.md \
CHANGELOG.md CMakeLists.txt CONTRIBUTING.md Do* Makefile README.md