chore(gomod): add `go mod tidy` checks in the CI BE-12233 (#1151)

pull/4790/merge
Viktor Pettersson 2025-09-10 08:28:58 +12:00 committed by GitHub
parent feae930293
commit 3ac0be4e35
2 changed files with 2 additions and 7 deletions

View File

@ -54,14 +54,12 @@ client-deps: ## Install client dependencies
tidy: ## Tidy up the go.mod file
@go mod tidy
##@ Cleanup
.PHONY: clean
clean: ## Remove all build and download artifacts
@echo "Clearing the dist directory..."
@rm -rf dist/*
##@ Testing
.PHONY: test test-client test-server
test: test-server test-client ## Run all tests
@ -105,16 +103,14 @@ lint: lint-client lint-server ## Lint all code
lint-client: ## Lint client code
yarn lint
lint-server: ## Lint server code
lint-server: tidy ## Lint server code
golangci-lint run --timeout=10m -c .golangci.yaml
##@ Extension
.PHONY: dev-extension
dev-extension: build-server build-client ## Run the extension in development mode
make local -f build/docker-extension/Makefile
##@ Docs
.PHONY: docs-build docs-validate docs-clean docs-validate-clean
docs-build: init-dist ## Build docs

View File

@ -27,8 +27,7 @@
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build -o ./dist/storybook",
"analyze-webpack": "webpack --config ./webpack/webpack.analyze.js",
"prepare": "cd ../.. && husky install package/server-ce/.husky"
},
"prepare": "cd ../.. && husky install package/server-ce/.husky && husky install .husky" },
"engines": {
"node": ">= 16"
},