Try to run linter and unit test from top-level directory
Instead of starting a separate pipeline for each service we now just run the linter and unit tests from the top-level directory. This allows us to run the linter it with '--modules-download-mode vendor' and should also reduce the resource usage.
This commit is contained in:
committed by
Ralf Haferkamp
parent
a9ddfec182
commit
4b3516ec92
@@ -193,9 +193,7 @@ go-mod-tidy:
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod test || exit 1; \
|
||||
done
|
||||
@go test -v -tags '$(TAGS)' -coverprofile coverage.out ./...
|
||||
|
||||
.PHONY: go-coverage
|
||||
go-coverage:
|
||||
@@ -216,6 +214,10 @@ golangci-lint:
|
||||
$(MAKE) --no-print-directory -C $$mod golangci-lint; \
|
||||
done
|
||||
|
||||
.PHONY: ci-golangci-lint
|
||||
ci-golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run --modules-download-mode vendor --timeout 15m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||
|
||||
.PHONY: golangci-lint-fix
|
||||
golangci-lint-fix:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
|
||||
Reference in New Issue
Block a user