Bump google.golang.org/protobuf in the protobuf-dependencies group (#… #1836
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gofmt | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- '.github/workflows/gofmt.yml' | |
- '**.go' | |
jobs: | |
gofmt: | |
name: Run gofmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
check-latest: true | |
- name: Install goimports | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
- name: gofmt | |
run: | | |
if [ "$(find . -iname '*.go' | grep -v '\.pb\.go$' | xargs goimports -l)" ] | |
then | |
find . -iname '*.go' | grep -v '\.pb\.go$' | xargs goimports -d | |
exit 1 | |
fi |