Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - use re-usable misspell #31

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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@main
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"
Loading