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
|
tidy: ## Tidy up the go.mod file
|
||||||
@go mod tidy
|
@go mod tidy
|
||||||
|
|
||||||
|
|
||||||
##@ Cleanup
|
##@ Cleanup
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: ## Remove all build and download artifacts
|
clean: ## Remove all build and download artifacts
|
||||||
@echo "Clearing the dist directory..."
|
@echo "Clearing the dist directory..."
|
||||||
@rm -rf dist/*
|
@rm -rf dist/*
|
||||||
|
|
||||||
|
|
||||||
##@ Testing
|
##@ Testing
|
||||||
.PHONY: test test-client test-server
|
.PHONY: test test-client test-server
|
||||||
test: test-server test-client ## Run all tests
|
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
|
lint-client: ## Lint client code
|
||||||
yarn lint
|
yarn lint
|
||||||
|
|
||||||
lint-server: ## Lint server code
|
lint-server: tidy ## Lint server code
|
||||||
golangci-lint run --timeout=10m -c .golangci.yaml
|
golangci-lint run --timeout=10m -c .golangci.yaml
|
||||||
|
|
||||||
|
|
||||||
##@ Extension
|
##@ Extension
|
||||||
.PHONY: dev-extension
|
.PHONY: dev-extension
|
||||||
dev-extension: build-server build-client ## Run the extension in development mode
|
dev-extension: build-server build-client ## Run the extension in development mode
|
||||||
make local -f build/docker-extension/Makefile
|
make local -f build/docker-extension/Makefile
|
||||||
|
|
||||||
|
|
||||||
##@ Docs
|
##@ Docs
|
||||||
.PHONY: docs-build docs-validate docs-clean docs-validate-clean
|
.PHONY: docs-build docs-validate docs-clean docs-validate-clean
|
||||||
docs-build: init-dist ## Build docs
|
docs-build: init-dist ## Build docs
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"storybook:build": "storybook build -o ./dist/storybook",
|
"storybook:build": "storybook build -o ./dist/storybook",
|
||||||
"analyze-webpack": "webpack --config ./webpack/webpack.analyze.js",
|
"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": {
|
"engines": {
|
||||||
"node": ">= 16"
|
"node": ">= 16"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue