Skip to content

Commit

Permalink
Merge pull request #4 from joaojvf/add_workflow_dispatch
Browse files Browse the repository at this point in the history
update
  • Loading branch information
joaojvf authored Jan 5, 2025
2 parents 8e1b3dd + a321d84 commit 9528b54
Show file tree
Hide file tree
Showing 7 changed files with 932 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
!**/.gitignore
!.git/HEAD
!.git/config
!.git/packed-refs
!.git/refs/heads/**
18 changes: 17 additions & 1 deletion .github/workflows/newbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- master
workflow_dispatch: ## turn available trigger manually the workflow

jobs:
build:
Expand All @@ -20,9 +21,24 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x' # Adjust the version as needed
cache: true
cache-dependency-path: ./src/**/packages.lock.json # Needs to enable cache directly in the main project first, adding that flag as true RestorePackagesWithLockFile

- name: Restore dependencies
run: dotnet restore

- name: Build the project
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore

# Do the tests and generate the file
- name: Test
run: |
dotnet test --no-build --no-restore ./AspirePoc.sln --configuration Release --logger trx --results-directory "TestResults"
- uses: actions/upload-artifact@v4
with:
name: dotnet-test-results
path: TestResults




7 changes: 7 additions & 0 deletions AspirePoc.sln
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspirePoc.Aspire.AppHost",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspirePoc.Aspire.ServiceDefaults", "src\AspirePoc.Aspire.ServiceDefaults\AspirePoc.Aspire.ServiceDefaults.csproj", "{BAF3C953-AA24-4432-9486-29993209B2D9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspirePoc.Core.Tests", "tests\AspirePoc.Core.Tests\AspirePoc.Core.Tests.csproj", "{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -67,6 +69,10 @@ Global
{BAF3C953-AA24-4432-9486-29993209B2D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BAF3C953-AA24-4432-9486-29993209B2D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BAF3C953-AA24-4432-9486-29993209B2D9}.Release|Any CPU.Build.0 = Release|Any CPU
{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -80,6 +86,7 @@ Global
{0FBEB036-4881-4B53-9201-D2EF3BA35EBD} = {BA79B24C-3E7D-4FF3-8E4F-F887AC52E3F1}
{2A9D00EE-FE24-4CA3-8F88-59D406184ACB} = {E471BF51-BF84-4607-BBE9-6A7E92C13AEB}
{3B2D2128-4EE8-4F5A-8761-3837BBBD99B7} = {BA79B24C-3E7D-4FF3-8E4F-F887AC52E3F1}
{863EDEF7-B7D4-4AEF-861D-D9A83264B1F0} = {8AD6061C-B1BB-4496-B208-B9A3BFE49F40}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9F0E472B-D8B2-4A0E-BE62-B9830EABA676}
Expand Down
4 changes: 4 additions & 0 deletions src/AspirePoc.Aspire.AppHost/AspirePoc.Aspire.AppHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<UserSecretsId>68e82203-2a4c-42ae-a527-9ca329ee2070</UserSecretsId>
</PropertyGroup>

<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.0.0" />
<PackageReference Include="Aspire.Hosting.RabbitMQ" Version="9.0.0" />
Expand Down
Loading

0 comments on commit 9528b54

Please sign in to comment.