sshpiper/.github/workflows/gofumpt.yml
dependabot[bot] 92301d2768
chore(deps): bump actions/checkout from 5 to 6 (#681)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-20 14:52:47 -08:00

34 lines
852 B
YAML

name: check gofumpt
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
gofumpt:
name: Check gofumpt formatting
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Download gofumpt binary
run: |
curl -L https://github.com/mvdan/gofumpt/releases/download/v0.8.0/gofumpt_v0.8.0_linux_amd64 -o /tmp/gofumpt
chmod +x /tmp/gofumpt
- name: Check gofumpt formatting
run: |
unformatted_files=$(/tmp/gofumpt -l .)
if [ -n "$unformatted_files" ]; then
echo "The following files are not gofumpt'd:"
echo "$unformatted_files"
echo
echo "Please run: gofumpt -w ."
exit 1
fi
echo "All files are properly formatted"