Skip to content

Created latest build #63

Created latest build

Created latest build #63

Workflow file for this run

# .github/workflows/gofmt.yml
name: Gofmt Check
on:
push:
branches:
- '**'
jobs:
gofmt:
name: Run gofmt
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24.2'
- name: Check formatting with gofmt
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not properly formatted:"
echo "$unformatted"
echo "Run 'gofmt -w .' to fix them."
exit 1
fi