pluginctl: update to v0.1.2

This commit is contained in:
Felipe M 2025-08-04 13:49:25 +02:00
parent a95ca8fb76
commit 35174c61a2
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
3 changed files with 110 additions and 48 deletions

View file

@ -2,11 +2,13 @@
# Testing and Quality Assurance
# ====================================================================================
GOLANGCI_LINT_BINARY = ./build/bin/golangci-lint
GOTESTSUM_BINARY = ./build/bin/gotestsum
## Install go tools
install-go-tools:
@echo Installing go tools
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
$(GO) install gotest.tools/gotestsum@v1.7.0
@echo "Installing development tools..."
@pluginctl tools install --bin-dir ./build/bin
## Runs eslint and golangci-lint
.PHONY: check-style
@ -24,14 +26,14 @@ endif
ifneq ($(HAS_SERVER),)
@echo Running golangci-lint
$(GO) vet ./...
$(GOBIN)/golangci-lint run ./...
$(GOLANGCI_LINT_BINARY) run ./...
endif
## Runs any lints and unit tests defined for the server and webapp, if they exist.
.PHONY: test
test: apply webapp/node_modules install-go-tools
ifneq ($(HAS_SERVER),)
$(GOBIN)/gotestsum -- -v ./...
$(GOTESTSUM_BINARY) -- -v ./...
endif
ifneq ($(HAS_WEBAPP),)
cd webapp && $(NPM) run test;
@ -42,7 +44,7 @@ endif
.PHONY: test-ci
test-ci: apply webapp/node_modules install-go-tools
ifneq ($(HAS_SERVER),)
$(GOBIN)/gotestsum --format standard-verbose --junitfile report.xml -- ./...
$(GOTESTSUM_BINARY) --format standard-verbose --junitfile report.xml -- ./...
endif
ifneq ($(HAS_WEBAPP),)
cd webapp && $(NPM) run test;