Skip to content

Commit

Permalink
Run misspell self-hosted & from maintained repo
Browse files Browse the repository at this point in the history
Run it with our own machine & take it from the repo that
is maintained.

However, as it's a self-hosted machine - the lib is already
there and it's also initialized. As are the node modules. These
contain LOTS of typos. Thus we must now specify which files/folders
to check (yes, it is a pain).
  • Loading branch information
JanneKiiskila committed Jan 11, 2024
1 parent 75485ca commit 4eb47d0
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/misspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,26 @@ concurrency:

jobs:
static-checks:
runs-on: ubuntu-latest
runs-on: edge-example-ci
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run misspell (findings may not increase)
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install & run misspell
if: always()
run: |
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh
bin/misspell -i mosquitto .
# 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

0 comments on commit 4eb47d0

Please sign in to comment.