File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 46
46
- uses : ./.github/actions/install-system-dependencies
47
47
- uses : ./.github/actions/install-go
48
48
- uses : ./.github/actions/make-deps
49
- -
run :
go install github.com/golangci/golangci-lint/cmd/[email protected]
50
- - run : golangci-lint run -v --timeout 10m --concurrency 4
49
+ - run : make lint
51
50
check-fmt :
52
51
name : Check (gofmt)
53
52
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ $(warning Your Golang version is go$(shell expr $(GOVERSION) / 1000000).$(shell
16
16
$(error Update Golang to version to at least $(shell cat GO_VERSION_MIN))
17
17
endif
18
18
19
+ GOLANGCI_LINT_VERSION =v1.59.0
20
+
19
21
# git modules that need to be loaded
20
22
MODULES: =
21
23
@@ -283,6 +285,12 @@ unittests: ## Run unit tests
283
285
@$(GOCC ) test $(shell go list ./... | grep -v /lotus/itests)
284
286
.PHONY : unittests
285
287
288
+ lint :
289
+ go mod tidy
290
+ go vet ./...
291
+ go run github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION ) run --timeout 10m --concurrency 4
292
+ .PHONY : lint
293
+
286
294
clean : # # Clean build artifacts
287
295
rm -rf $(CLEAN ) $(BINS )
288
296
-$(MAKE ) -C $(FFI_PATH ) clean
You can’t perform that action at this time.
0 commit comments