Skip to content

Commit

Permalink
fix: Add gofmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha committed Nov 2, 2024
1 parent 6558f06 commit 7f6b3d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion workflows/go/.github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22" # Use the Go version specified in your go.mod file
go-version: "1.22"

- name: Check gofmt
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "The following files are not formatted properly:"
gofmt -l .
exit 1
fi
- name: Get dependencies
run: go mod download
Expand Down

0 comments on commit 7f6b3d5

Please sign in to comment.