Files
Slim/.github/workflows/ci.yaml
T
amacocian e8adfa1acc Slim Integration with Microsoft.Extensions.DependencyInjection (#20)
* Setup integration with Microsoft.Extensions.DependencyInjection

* Setup Slim integration project with Microsoft.Extensions.DependencyInjection
2022-09-09 14:26:25 +02:00

52 lines
1.2 KiB
YAML

name: Slim CI Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
targetplatform: [x64]
runs-on: windows-latest
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
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.1
- 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
env:
Configuration: Debug
RuntimeIdentifier: win-${{ matrix.targetplatform }}