make vendor #73
This file contains hidden or 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
# .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 |