diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bdf7eaf..4b2697c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,13 +10,14 @@ on: jobs: # It's recommended to run golangci-lint in a job separate from other jobs (go test, etc) because different jobs run in parallel. go-linter: + strategy: + fail-fast: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: '1.20' - cache: true + go-version-file: go.mod - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -51,7 +52,6 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: go.mod - cache: true # TODO: Use `go mod tidy --check` after https://github.com/golang/go/issues/27005 is fixed. - run: go mod tidy - run: git diff --exit-code diff --git a/Makefile b/Makefile index 6321baa..41d0656 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ lint: $(SOURCES) .get-deps-stamp: GO111MODULE=off GOBIN=$(DEPSPATH) go get golang.org/x/tools/cmd/goimports GOBIN=$(DEPSPATH) go get github.com/golang/mock/mockgen@v1.4.1 - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(DEPSPATH) v1.52.2 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(DEPSPATH) v1.53.3 $(DEPSPATH)/golangci-lint --version touch .get-deps-stamp