mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 00:44:25 +01:00
* Bump actions/setup-go from 5 to 6 Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Hardcode the last one to go v1.25 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nate Brown <nbrown.us@gmail.com>
35 lines
674 B
YAML
35 lines
674 B
YAML
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@v6
|
|
with:
|
|
go-version: '1.25'
|
|
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
|