Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,24 @@ jobs:
with:
dotnet-version: '6.0.x'

- name: Install template
run: dotnet new --install ./

- name: Create new solution
run: dotnet new monstarlab-api -n "Monstarlab.PullRequest"

- name: Clean
run: dotnet clean Monstarlab.Templates.API.sln --configuration Release && dotnet nuget locals all --clear
run: dotnet clean Monstarlab.PullRequest/Monstarlab.PullRequest.API.sln --configuration Release && dotnet nuget locals all --clear

- name: Install dependencies
run: dotnet restore Monstarlab.Templates.API.sln
run: dotnet restore Monstarlab.PullRequest/Monstarlab.PullRequest.API.sln

- name: Build
run: dotnet build Monstarlab.Templates.API.sln --configuration Release --no-restore
run: dotnet build Monstarlab.PullRequest/Monstarlab.PullRequest.API.sln --configuration Release --no-restore

- name: Test
run: dotnet test Monstarlab.Templates.API.sln --configuration Release --no-restore
run: dotnet test Monstarlab.PullRequest/Monstarlab.PullRequest.API.sln --configuration Release --no-restore

- name: Clean up
if: always()
run: dotnet new --uninstall ./
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,26 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

**/.DS_Store

# User specific
**/.idea/**/workspace.xml
**/.idea/**/tasks.xml
**/.idea/shelf/*
**/.idea/dictionaries
**/.idea/httpRequests/

# Sensitive or high-churn files
**/.idea/**/dataSources/
**/.idea/**/dataSources.ids
**/.idea/**/dataSources.xml
**/.idea/**/dataSources.local.xml
**/.idea/**/sqlDataSources.xml
**/.idea/**/dynamic.xml

# Rider
# Rider auto-generates .iml files, and contentModel.xml
**/.idea/**/*.iml
**/.idea/**/contentModel.xml
**/.idea/**/modules.xml
13 changes: 13 additions & 0 deletions .idea/.idea.OrganizationName.CompanyName.API/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.idea.OrganizationName.CompanyName.API/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.OrganizationName.CompanyName.API/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions .template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"$schema": "https://json.schemastore.org/template",
"author": "Monstarlab",
"classifications": ["WebAPI"],
"name": "MonstarLab API Template",
"identity": "Monstarlab.Templates.Api",
"groupIdentity": "Monstarlab.Templates.Api",
"shortName": "monstarlab-api",
"tags": {
"language": "C#",
"type": "solution"
},
"sourceName": "OrganizationName.ProjectName",
"preferNameDirectory": true,
"symbols": {
"organizationName": {
"type": "derived",
"valueSource": "name",
"valueTransform": "getOrganizationName",
"replaces": "OrganizationName"
},
"projectName": {
"type": "derived",
"valueSource": "name",
"valueTransform": "getProjectName",
"replaces": "ProjectName"
}
},
"forms": {
"getOrganizationName": {
"identifier": "replace",
"pattern": "^(.*)\\.(.*)$",
"replacement": "$1"
},
"getProjectName": {
"identifier": "replace",
"pattern": "^(.*)\\.(.*)$",
"replacement": "$1"
}
},
"sources": [
{
"source": "./",
"target": "./",
"exclude": [
"**/README.md",
"**/nuget.config",
"**/LICENSE",
"**/.gitattributes",
"**/.gitignore",
"**/*.nupkg",
"**/[Bb]in/**",
"**/[Oo]bj/**",
".template.config/**/*",
".vs/**/*",
"**/*.filelist",
"**/*.user",
"**/*.lock.json",
"**/.git/**",
"**/.github/**",
"*.nuspec",
"**/node_modules/**"
]
}
]
}

This file was deleted.

Loading