Skip to content

Commit

Permalink
PR checker / misspell - use golangci misspell
Browse files Browse the repository at this point in the history
Use the one that's maintained.
  • Loading branch information
JanneKiiskila committed Jan 9, 2024
1 parent aebcc5e commit 192f489
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@ jobs:
path: scripts-internal
token: ${{ secrets.ACCESS_TOKEN }}
# Need to run this 1st, so that the other log files do not cause unnecessary findings
- name: Run misspell
- 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 . >misspell.log
go install github.com/golangci/misspell/cmd/misspell@latest
misspell -i mosquitto . >misspell.log
echo "## Summary" >>$SUMMARY_FILE
echo "### misspell" >>$SUMMARY_FILE
cat misspell.log >>$SUMMARY_FILE
bin/misspell -error -i mosquitto .
misspell -error -i mosquitto .
lines=$(wc -l < "misspell.log")
if [[ $lines -gt 0 ]]; then
echo "Misspell has findings, fail."
Expand Down

0 comments on commit 192f489

Please sign in to comment.