✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
6298a623f7
commit
828e257453
18
Makefile
18
Makefile
@@ -7,39 +7,39 @@ help: ## Show the help.
|
||||
|
||||
.PHONY: buildrel
|
||||
buildrel: ## Format code.
|
||||
dotnet build -c Release project_name.sln
|
||||
dotnet build -c Release DotnetTestLib.sln
|
||||
|
||||
.PHONY: build
|
||||
build: ## Format code.
|
||||
dotnet build project_name.sln
|
||||
dotnet build DotnetTestLib.sln
|
||||
|
||||
.PHONY: publish
|
||||
publish: ## Format code.
|
||||
dotnet publish -c Release project_name.sln
|
||||
dotnet publish -c Release DotnetTestLib.sln
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: ## Format code.
|
||||
dotnet format project_name.sln
|
||||
dotnet format DotnetTestLib.sln
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint code.
|
||||
dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
|
||||
dotnet format --verify-no-changes --verbosity diagnostic DotnetTestLib.sln
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run tests and generate coverage report.
|
||||
dotnet test project_name.sln
|
||||
dotnet test DotnetTestLib.sln
|
||||
|
||||
.PHONY: clean
|
||||
clean: ## Clean unused files.
|
||||
dotnet clean project_name.sln
|
||||
dotnet clean DotnetTestLib.sln
|
||||
|
||||
.PHONY: release
|
||||
release: ## Create a new tag for release.
|
||||
@echo "WARNING: This operation will create a version tag and push to gitea"
|
||||
@read -p "Version? (provide the next x.y.z semver) : " TAG
|
||||
@echo "$${TAG}" > project_name/VERSION
|
||||
@echo "$${TAG}" > DotnetTestLib/VERSION
|
||||
@$(ENV_PREFIX)gitchangelog > HISTORY.md
|
||||
@git add project_name/VERSION HISTORY.md
|
||||
@git add DotnetTestLib/VERSION HISTORY.md
|
||||
@git commit -m "release: version $${TAG} 🚀"
|
||||
@echo "creating git tag : $${TAG}"
|
||||
@git tag $${TAG}
|
||||
|
||||
Reference in New Issue
Block a user