Skip to content

Commit

Permalink
Add Aspire Support #965
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Jul 20, 2024
1 parent 14dadd2 commit 1ce4130
Show file tree
Hide file tree
Showing 421 changed files with 775 additions and 473 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/blazor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: blazor
on:
push:
branches: ["v2"]
paths: ["apps/blazor/**"]
paths: ["src/blazor/**"]

pull_request:
branches: ["v2"]
paths: ["apps/blazor/**"]
paths: ["src/blazor/**"]

jobs:
build:
Expand All @@ -19,11 +19,11 @@ jobs:
with:
dotnet-version: 8.0.x
- name: restore dependencies
run: dotnet restore ./apps/blazor/FSH.Blazor.sln
run: dotnet restore ./src/blazor/client/Client.csproj
- name: build
run: dotnet build ./apps/blazor/FSH.Blazor.sln --no-restore
run: dotnet build ./src/blazor/client/Client.csproj --no-restore
- name: test
run: dotnet test ./apps/blazor/FSH.Blazor.sln --no-build --verbosity normal
run: dotnet test ./src/blazor/client/Client.csproj --no-build --verbosity normal

publish:
needs: build
Expand All @@ -39,7 +39,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and publish to github container registry
working-directory: ./apps/blazor/
working-directory: ./src/blazor/
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/blazor:latest -f Dockerfile .
docker push ghcr.io/${{ github.repository_owner }}/blazor:latest
12 changes: 6 additions & 6 deletions .github/workflows/webapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: webapi
on:
push:
branches: ["v2"]
paths: ["api/**"]
paths: ["src/api/**"]

pull_request:
branches: ["v2"]
paths: ["api/**"]
paths: ["src/api/**"]

jobs:
build:
Expand All @@ -19,11 +19,11 @@ jobs:
with:
dotnet-version: 8.0.x
- name: restore dependencies
run: dotnet restore ./api/FSH.WebApi.sln
run: dotnet restore ./src/api/server/Server.csproj
- name: build
run: dotnet build ./api/FSH.WebApi.sln --no-restore
run: dotnet build ./src/api/server/Server.csproj --no-restore
- name: test
run: dotnet test ./api/FSH.WebApi.sln --no-build --verbosity normal
run: dotnet test ./src/api/server/Server.csproj --no-build --verbosity normal

publish:
needs: build
Expand All @@ -39,7 +39,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: publish to github container registry
working-directory: ./api/
working-directory: ./src/api/server/
run: |
dotnet publish -c Release -p:ContainerRepository=ghcr.io/${{ github.repository_owner}}/webapi -p:RuntimeIdentifier=linux-x64
docker push ghcr.io/${{ github.repository_owner}}/webapi --all-tags
5 changes: 5 additions & 0 deletions .template.config/ide.host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "http://json.schemastore.org/vs-2017.3.host",
"order": 0,
"icon": "icon.png"
}
61 changes: 61 additions & 0 deletions .template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Mukesh Murugan",
"classifications": [
"WebAPI",
"Clean Architecture",
"Boilerplate",
"ASP.NET Core",
"Starter Kit",
"Cloud",
"Web"
],
"tags": {
"language": "C#",
"type": "project"
},
"identity": "FullStackHero.NET.StarterKit",
"name": "FullStackHero .NET Starter Kit",
"description": "The best way to start a full-stack .NET 8 Web App.",
"shortName": "fsh",
"sourceName": "FSH",
"preferNameDirectory": true,
"sources": [
{
"source": "./",
"target": "./",
"exclude": [
".template.config/**",
".idea/**",
".vscode/**",
".vs/**",
".github/**",
"templates/**/*",
"**/*.filelist",
"**/*.user",
"**/*.lock.json",
"*.nuspec"
],
"rename": {
"README-template.md": "README.md"
}
}
],
"primaryOutputs": [
{
"path": "./"
}
],
"postActions": [
{
"description": "Restore NuGet packages required by this project.",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}
Empty file added README-template.md
Empty file.
197 changes: 0 additions & 197 deletions api/FSH.WebApi.sln

This file was deleted.

13 changes: 0 additions & 13 deletions api/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions api/framework/Infrastructure/Observability/Extensions.cs

This file was deleted.

11 changes: 0 additions & 11 deletions api/launchSettings.json

This file was deleted.

Loading

0 comments on commit 1ce4130

Please sign in to comment.