From fe7ec881cd5890c1e1b68a165f56a8e4a2895e45 Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 29 Nov 2023 18:37:07 +0100 Subject: [PATCH] disable golint, add go fmt check --- .github/workflows/_shared-check.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_shared-check.yaml b/.github/workflows/_shared-check.yaml index 6051fb65..7f18977d 100644 --- a/.github/workflows/_shared-check.yaml +++ b/.github/workflows/_shared-check.yaml @@ -23,17 +23,18 @@ jobs: - name: Run go vet run: go vet ./... + - name: Check go fmt + run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi + - name: Install staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest - - name: Run staticcheck run: staticcheck ./... - - name: Install golint - run: go install golang.org/x/lint/golint@latest - - - name: Run golint - run: golint ./... + #- name: Install golint + # run: go install golang.org/x/lint/golint@latest + #- name: Run golint + # run: golint ./... - name: Run tests run: go test -race -vet=off ./...