Ready to clone and code.

This commit is contained in:
simon
2024-11-27 20:09:05 +00:00
committed by github-actions[bot]
parent 6298a623f7
commit 828e257453
17 changed files with 28 additions and 117 deletions

View File

@@ -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}