Skip to content

Commit

Permalink
PR-check / misspell
Browse files Browse the repository at this point in the history
Find the typos... Or prevent them leaking in.
  • Loading branch information
JanneKiiskila committed Oct 20, 2023
1 parent 8c75d2a commit 320649a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ jobs:
- uses: actions/checkout@v3
- run: shellcheck --version
- run: shellcheck scripts/*.sh
run-misspell:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run misspell
run: |
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh
bin/misspell -i mosquitto,Stichting,Mathematisch scripts test_cases test-configs utils conf >misspell.log
echo "### misspell" >>$SUMMARY_FILE
cat misspell.log >>$SUMMARY_FILE
bin/misspell -error -i mosquitto .
lines=$(wc -l < "misspell.log")
if [[ $lines -gt 0 ]]; then
echo "Misspell has findings, fail."
echo "TEST_FAIL=true" >> $GITHUB_ENV
exit 1
fi

0 comments on commit 320649a

Please sign in to comment.