mirror of
https://github.com/AlexMacocian/Slim.git
synced 2026-07-15 15:19:59 +00:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user