generated from Templates/Dotnet_Executable
✅ Ready to clone and code.
This commit is contained in:
parent
d0bb5584bb
commit
1c56195d78
@ -16,10 +16,10 @@ echo "Description: $description";
|
|||||||
|
|
||||||
echo "Renaming project..."
|
echo "Renaming project..."
|
||||||
|
|
||||||
original_author="author_name"
|
original_author="Projects"
|
||||||
original_name="project_name"
|
original_name="DotnetTestExe"
|
||||||
original_urlname="project_urlname"
|
original_urlname="DotnetTestExe"
|
||||||
original_description="project_description"
|
original_description="Awesome DotnetTestExe created by Projects"
|
||||||
# for filename in $(find . -name "*.*")
|
# for filename in $(find . -name "*.*")
|
||||||
for filename in $(git ls-files)
|
for filename in $(git ls-files)
|
||||||
do
|
do
|
||||||
@ -30,11 +30,11 @@ do
|
|||||||
echo "Renamed $filename"
|
echo "Renamed $filename"
|
||||||
done
|
done
|
||||||
|
|
||||||
mv project_name $name
|
mv DotnetTestExe $name
|
||||||
mv project_name.Tests $name.Tests
|
mv DotnetTestExe.Tests $name.Tests
|
||||||
mv project_name.sln $name.sln
|
mv DotnetTestExe.sln $name.sln
|
||||||
mv $name/project_name.csproj $name/$name.csproj
|
mv $name/DotnetTestExe.csproj $name/$name.csproj
|
||||||
mv $name.Tests/project_name.Tests.csproj $name.Tests/$name.Tests.csproj
|
mv $name.Tests/DotnetTestExe.Tests.csproj $name.Tests/$name.Tests.csproj
|
||||||
|
|
||||||
# This command runs only once on GHA!
|
# This command runs only once on GHA!
|
||||||
rm -rf .gitea/template.yml
|
rm -rf .gitea/template.yml
|
||||||
|
@ -1 +0,0 @@
|
|||||||
author: rochacbruno
|
|
@ -10,7 +10,7 @@ jobs:
|
|||||||
sonarqube:
|
sonarqube:
|
||||||
name: SonarQube Trigger
|
name: SonarQube Trigger
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ !contains ('project_name', format('{0}_{1}', 'project', 'name')) }}
|
if: ${{ !contains ('DotnetTestExe', format('{0}_{1}', 'project', 'name')) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checking out
|
- name: Checking out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -24,4 +24,4 @@ jobs:
|
|||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||||
with:
|
with:
|
||||||
args: >
|
args: >
|
||||||
-Dsonar.projectKey=project_name
|
-Dsonar.projectKey=DotnetTestExe
|
@ -1,6 +1,6 @@
|
|||||||
# How to develop on this project
|
# How to develop on this project
|
||||||
|
|
||||||
project_name welcomes contributions from the community.
|
DotnetTestExe welcomes contributions from the community.
|
||||||
|
|
||||||
**You need Dotnet 9!**
|
**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.
|
## Setting up your own fork of this repo.
|
||||||
|
|
||||||
- On gitea interface click on `Fork` button.
|
- 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`
|
- Clone your fork of this repo. `git clone git@git.disi.dev:YOUR_GIT_USERNAME/DotnetTestExe.git`
|
||||||
- Enter the directory `cd project_urlname`
|
- Enter the directory `cd DotnetTestExe`
|
||||||
- Add upstream repo `git remote add upstream https://git.disi.dev/author_name/project_urlname`
|
- Add upstream repo `git remote add upstream https://git.disi.dev/Projects/DotnetTestExe`
|
||||||
|
|
||||||
## Run the tests to ensure everything is working
|
## Run the tests to ensure everything is working
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/runtime:9.0
|
FROM mcr.microsoft.com/dotnet/runtime:9.0
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["project_name"]
|
CMD ["DotnetTestExe"]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace project_name.Tests;
|
namespace DotnetTestExe.Tests;
|
||||||
|
|
||||||
public class UnitTest1
|
public class UnitTest1
|
||||||
{
|
{
|
@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.0.31903.59
|
VisualStudioVersion = 17.0.31903.59
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
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
|
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
@ -2,4 +2,4 @@ include LICENSE
|
|||||||
include HISTORY.md
|
include HISTORY.md
|
||||||
include Containerfile
|
include Containerfile
|
||||||
graft tests
|
graft tests
|
||||||
graft project_name
|
graft DotnetTestExe
|
||||||
|
12
Makefile
12
Makefile
@ -7,27 +7,27 @@ help: ## Show the help.
|
|||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt: ## Format code.
|
fmt: ## Format code.
|
||||||
dotnet format project_name.sln
|
dotnet format DotnetTestExe.sln
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: ## Lint code.
|
lint: ## Lint code.
|
||||||
dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
|
dotnet format --verify-no-changes --verbosity diagnostic DotnetTestExe.sln
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run tests and generate coverage report.
|
test: ## Run tests and generate coverage report.
|
||||||
dotnet test project_name.sln
|
dotnet test DotnetTestExe.sln
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: ## Clean unused files.
|
clean: ## Clean unused files.
|
||||||
dotnet clean project_name.sln
|
dotnet clean DotnetTestExe.sln
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: ## Create a new tag for release.
|
release: ## Create a new tag for release.
|
||||||
@echo "WARNING: This operation will create a version tag and push to gitea"
|
@echo "WARNING: This operation will create a version tag and push to gitea"
|
||||||
@read -p "Version? (provide the next x.y.z semver) : " TAG
|
@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
|
@$(ENV_PREFIX)gitchangelog > HISTORY.md
|
||||||
@git add project_name/VERSION HISTORY.md
|
@git add DotnetTestExe/VERSION HISTORY.md
|
||||||
@git commit -m "release: version $${TAG} 🚀"
|
@git commit -m "release: version $${TAG} 🚀"
|
||||||
@echo "creating git tag : $${TAG}"
|
@echo "creating git tag : $${TAG}"
|
||||||
@git tag $${TAG}
|
@git tag $${TAG}
|
||||||
|
@ -26,9 +26,9 @@
|
|||||||
<!-- DELETE THE LINES ABOVE THIS AND WRITE YOUR PROJECT README BELOW -->
|
<!-- DELETE THE LINES ABOVE THIS AND WRITE YOUR PROJECT README BELOW -->
|
||||||
|
|
||||||
---
|
---
|
||||||
# project_name
|
# DotnetTestExe
|
||||||
|
|
||||||
project_description
|
Awesome DotnetTestExe created by Projects
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
site_name: project_name
|
site_name: DotnetTestExe
|
||||||
theme: readthedocs
|
theme: readthedocs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user