✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
d0bb5584bb
commit
1c56195d78
12
Makefile
12
Makefile
@@ -7,27 +7,27 @@ help: ## Show the help.
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: ## Format code.
|
||||
dotnet format project_name.sln
|
||||
dotnet format DotnetTestExe.sln
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint code.
|
||||
dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
|
||||
dotnet format --verify-no-changes --verbosity diagnostic DotnetTestExe.sln
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run tests and generate coverage report.
|
||||
dotnet test project_name.sln
|
||||
dotnet test DotnetTestExe.sln
|
||||
|
||||
.PHONY: clean
|
||||
clean: ## Clean unused files.
|
||||
dotnet clean project_name.sln
|
||||
dotnet clean DotnetTestExe.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}" > DotnetTestExe/VERSION
|
||||
@$(ENV_PREFIX)gitchangelog > HISTORY.md
|
||||
@git add project_name/VERSION HISTORY.md
|
||||
@git add DotnetTestExe/VERSION HISTORY.md
|
||||
@git commit -m "release: version $${TAG} 🚀"
|
||||
@echo "creating git tag : $${TAG}"
|
||||
@git tag $${TAG}
|
||||
|
||||
Reference in New Issue
Block a user