mirror of
https://github.com/nyanotech/object-holder.git
synced 2025-12-16 03:20:25 -08:00
add lint check
This commit is contained in:
parent
2f9ff372c5
commit
fc1e288567
9
.github/workflows/go.yml
vendored
9
.github/workflows/go.yml
vendored
@ -15,6 +15,15 @@ jobs:
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Format check
|
||||
run: |
|
||||
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
|
||||
echo "Code is not formatted. Run 'go fmt ./...'"
|
||||
gofmt -s -l .
|
||||
exit 1
|
||||
fi
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
- name: Test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user