Slim Integration with Microsoft.Extensions.DependencyInjection (#20)

* Setup integration with Microsoft.Extensions.DependencyInjection

* Setup Slim integration project with Microsoft.Extensions.DependencyInjection
This commit is contained in:
2022-09-09 14:26:25 +02:00
committed by GitHub
parent b337497de5
commit e8adfa1acc
14 changed files with 487 additions and 4 deletions
+5 -1
View File
@@ -20,6 +20,7 @@ jobs:
Solution_Path: Slim.sln
Test_Project_Path: Slim.Tests\Slim.Tests.csproj
Source_Project_Path: Slim\Slim.csproj
Integration_Project_Path: Slim.Integration\Slim.Integration.csproj
Actions_Allow_Unsecure_Commands: true
steps:
@@ -44,8 +45,11 @@ jobs:
- name: Build Slim project
run: dotnet build Slim -c $env:Configuration
- name: Package
- name: Package Slim
run: dotnet pack -c Release -o . $env:Source_Project_Path
- name: Package Slim.Integration
run: dotnet pack -c Release -o . $env:Integration_Project_Path
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
+5 -1
View File
@@ -21,6 +21,7 @@ jobs:
env:
Solution_Path: Slim.sln
Test_Project_Path: Slim.Tests\Slim.Tests.csproj
Integration_Test_Project_Path: Slim.Integration.Tests\Slim.Integration.Tests.csproj
Source_Project_Path: Slim\Slim.csproj
Actions_Allow_Unsecure_Commands: true
@@ -38,8 +39,11 @@ jobs:
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.1
- name: Execute Unit Tests
- name: Execute Slim Unit Tests
run: dotnet test $env:Test_Project_Path
- name: Execute Slim.Integration Unit Tests
run: dotnet test $env:Integration_Test_Project_Path
- name: Restore Project
run: msbuild $env:Solution_Path /t:Restore /p:Configuration=$env:Configuration /p:RuntimeIdentifier=$env:RuntimeIdentifier