Skip to content

Commit

Permalink
PR - use re-usable misspell
Browse files Browse the repository at this point in the history
To have one central point where to configure versions.
  • Loading branch information
JanneKiiskila committed Dec 16, 2024
1 parent 9cabdd9 commit 7aa3bc8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/misspell.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: misspell
on: push
on:
push:
workflow_dispatch:

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand All @@ -12,22 +14,12 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- name: Misspell
uses: PelionIoT/actions/.github/actions/misspell@misspell-path
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 \
exceptions: "mosquitto"
path: ".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
CHANGELOG.md CMakeLists.txt CONTRIBUTING.md Do* Makefile README.md"

0 comments on commit 7aa3bc8

Please sign in to comment.