Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [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/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
668 B
YAML
31 lines
668 B
YAML
name: Format Check
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
jobs:
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Set up Go
|
|
uses: ./.github/actions/setup-go
|
|
with:
|
|
go-version: "1.24.2"
|
|
|
|
- name: Check formatting
|
|
run: |
|
|
for dir in . runtime; do
|
|
pushd $dir
|
|
if [ -n "$(go fmt ./... | grep -v xgo_autogen.go)" ]; then
|
|
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
|
|
exit 1
|
|
fi
|
|
popd
|
|
done
|
|
echo "All files are properly formatted."
|