diff --git a/.gitea/rename_project.sh b/.gitea/rename_project.sh index 022fc64..a31d538 100755 --- a/.gitea/rename_project.sh +++ b/.gitea/rename_project.sh @@ -16,10 +16,10 @@ echo "Description: $description"; echo "Renaming project..." -original_author="author_name" -original_name="project_name" -original_urlname="project_urlname" -original_description="project_description" +original_author="Projects" +original_name="DotnetTestExe" +original_urlname="DotnetTestExe" +original_description="Awesome DotnetTestExe created by Projects" # for filename in $(find . -name "*.*") for filename in $(git ls-files) do @@ -30,11 +30,11 @@ do echo "Renamed $filename" done -mv project_name $name -mv project_name.Tests $name.Tests -mv project_name.sln $name.sln -mv $name/project_name.csproj $name/$name.csproj -mv $name.Tests/project_name.Tests.csproj $name.Tests/$name.Tests.csproj +mv DotnetTestExe $name +mv DotnetTestExe.Tests $name.Tests +mv DotnetTestExe.sln $name.sln +mv $name/DotnetTestExe.csproj $name/$name.csproj +mv $name.Tests/DotnetTestExe.Tests.csproj $name.Tests/$name.Tests.csproj # This command runs only once on GHA! rm -rf .gitea/template.yml diff --git a/.gitea/template.yml b/.gitea/template.yml deleted file mode 100644 index 3386bee..0000000 --- a/.gitea/template.yml +++ /dev/null @@ -1 +0,0 @@ -author: rochacbruno diff --git a/.gitea/workflows/sonar.yml b/.gitea/workflows/sonar.yml index 7f62db9..f66313c 100644 --- a/.gitea/workflows/sonar.yml +++ b/.gitea/workflows/sonar.yml @@ -10,7 +10,7 @@ jobs: sonarqube: name: SonarQube Trigger runs-on: ubuntu-latest - if: ${{ !contains ('project_name', format('{0}_{1}', 'project', 'name')) }} + if: ${{ !contains ('DotnetTestExe', format('{0}_{1}', 'project', 'name')) }} steps: - name: Checking out uses: actions/checkout@v4 @@ -24,4 +24,4 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} with: args: > - -Dsonar.projectKey=project_name \ No newline at end of file + -Dsonar.projectKey=DotnetTestExe \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aff917f..9eb762f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # How to develop on this project -project_name welcomes contributions from the community. +DotnetTestExe welcomes contributions from the community. **You need Dotnet 9!** @@ -8,9 +8,9 @@ This instructions are for linux base systems. (Linux, MacOS, BSD, etc.) ## Setting up your own fork of this repo. - On gitea interface click on `Fork` button. -- Clone your fork of this repo. `git clone git@git.disi.dev:YOUR_GIT_USERNAME/project_urlname.git` -- Enter the directory `cd project_urlname` -- Add upstream repo `git remote add upstream https://git.disi.dev/author_name/project_urlname` +- Clone your fork of this repo. `git clone git@git.disi.dev:YOUR_GIT_USERNAME/DotnetTestExe.git` +- Enter the directory `cd DotnetTestExe` +- Add upstream repo `git remote add upstream https://git.disi.dev/Projects/DotnetTestExe` ## Run the tests to ensure everything is working diff --git a/Containerfile b/Containerfile index a386e7d..a842cfb 100644 --- a/Containerfile +++ b/Containerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/dotnet/runtime:9.0 COPY . /app WORKDIR /app -CMD ["project_name"] +CMD ["DotnetTestExe"] diff --git a/project_name.Tests/project_name.Tests.csproj b/DotnetTestExe.Tests/DotnetTestExe.Tests.csproj similarity index 100% rename from project_name.Tests/project_name.Tests.csproj rename to DotnetTestExe.Tests/DotnetTestExe.Tests.csproj diff --git a/project_name.Tests/UnitTest1.cs b/DotnetTestExe.Tests/UnitTest1.cs similarity index 69% rename from project_name.Tests/UnitTest1.cs rename to DotnetTestExe.Tests/UnitTest1.cs index cd4d86c..1be1e11 100644 --- a/project_name.Tests/UnitTest1.cs +++ b/DotnetTestExe.Tests/UnitTest1.cs @@ -1,4 +1,4 @@ -namespace project_name.Tests; +namespace DotnetTestExe.Tests; public class UnitTest1 { diff --git a/project_name.sln b/DotnetTestExe.sln similarity index 77% rename from project_name.sln rename to DotnetTestExe.sln index 8066b33..497661f 100644 --- a/project_name.sln +++ b/DotnetTestExe.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project_name", "project_name\project_name.csproj", "{B25F5E39-D0A6-4548-A3B6-428275AB154D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetTestExe", "DotnetTestExe\DotnetTestExe.csproj", "{B25F5E39-D0A6-4548-A3B6-428275AB154D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project_name.Tests", "project_name.Tests\project_name.Tests.csproj", "{FD1B8A2E-3BA7-4FDD-96FB-18551A15A5F3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetTestExe.Tests", "DotnetTestExe.Tests\DotnetTestExe.Tests.csproj", "{FD1B8A2E-3BA7-4FDD-96FB-18551A15A5F3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/project_name/project_name.csproj b/DotnetTestExe/DotnetTestExe.csproj similarity index 100% rename from project_name/project_name.csproj rename to DotnetTestExe/DotnetTestExe.csproj diff --git a/project_name/Program.cs b/DotnetTestExe/Program.cs similarity index 100% rename from project_name/Program.cs rename to DotnetTestExe/Program.cs diff --git a/project_name/VERSION b/DotnetTestExe/VERSION similarity index 100% rename from project_name/VERSION rename to DotnetTestExe/VERSION diff --git a/MANIFEST.in b/MANIFEST.in index ef198d6..d76a027 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,4 @@ include LICENSE include HISTORY.md include Containerfile graft tests -graft project_name +graft DotnetTestExe diff --git a/Makefile b/Makefile index b51d319..e6ef2e7 100644 --- a/Makefile +++ b/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} diff --git a/README.md b/README.md index 614a3b5..a532dcf 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ --- -# project_name +# DotnetTestExe -project_description +Awesome DotnetTestExe created by Projects ## Usage diff --git a/mkdocs.yml b/mkdocs.yml index 33a69ca..09bbf31 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,2 +1,2 @@ -site_name: project_name +site_name: DotnetTestExe theme: readthedocs