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:
Ralf Haferkamp
2023-10-19 16:41:54 +02:00
committed by Ralf Haferkamp
parent a9ddfec182
commit 4b3516ec92
3 changed files with 20 additions and 67 deletions
+5 -3
View File
@@ -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 \