From d39ab8f93e9e44f4422602787e837d7d19968118 Mon Sep 17 00:00:00 2001 From: yuin Date: Tue, 15 Aug 2023 18:53:16 +0900 Subject: [PATCH] Runs linters only if on the linux --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d68b8a2..c382846 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,6 +19,7 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: latest + if: "matrix.platform == 'ubuntu-latest'" # gofmt linter fails on Windows for CRLF problems - name: Run tests run: go test -v ./... -covermode=count -coverprofile=coverage.out -coverpkg=./... - name: Send coverage