* Run golangci in server CI

Also reordered the checks in check-style target to run vet check
first which has far better error messages in case of unsynced branch failures.
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2023-05-04 19:37:30 +05:30
коммит произвёл GitHub
родитель 76ad948b80
Коммит 349e5d4573
2 изменённых файлов: 22 добавлений и 3 удалений

Просмотреть файл

@@ -291,7 +291,7 @@ else
endif
golangci-lint: ## Run golangci-lint on codebase
@# Keep the version in sync with the command in .circleci/config.yml
@# Keep the version in sync with the command in .github/workflows/ci.yml#L107
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
@echo Running golangci-lint
@@ -403,8 +403,7 @@ setup-go-work: export BUILD_ENTERPRISE_READY := $(BUILD_ENTERPRISE_READY)
setup-go-work: ## Sets up your go.work file
./scripts/setup_go_work.sh $(IGNORE_GO_WORK_IF_EXISTS)
check-style: golangci-lint plugin-checker vet ## Runs style/lint checks
check-style: plugin-checker vet golangci-lint ## Runs style/lint checks
do-cover-file: ## Creates the test coverage report file.
@echo "mode: count" > cover.out