mirror of https://github.com/portainer/portainer
chore(gomod): add `go mod tidy` checks in the CI BE-12233 (#1151)
parent
feae930293
commit
3ac0be4e35
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue