Skip to content

Commit

Permalink
Run gofmt on all files, complain about the diff. (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
zagrodzki authored Nov 3, 2021
1 parent bdb184b commit 1f6abc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.17
- run: DIFF="$( find . -name '*.go' -print0 | xargs -0 gofmt -l )"; if [ -n "$DIFF" ]; then echo "Files not formatted, run gofmt:"; echo "$DIFF"; exit 1; fi
- run: sudo apt-get install libusb-1.0-0-dev
- run: go install golang.org/x/tools/cmd/cover@latest
- run: go install golang.org/x/lint/golint@latest
Expand Down

0 comments on commit 1f6abc1

Please sign in to comment.