name: .NET Core Desktop on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: strategy: matrix: configuration: [Debug, Release] runs-on: windows-latest env: Solution_Name: CreamInstaller.sln Test_Project_Path: CreamInstaller\CreamInstaller.csproj steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Install .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 - name: Execute Unit Tests run: dotnet test - name: Restore Application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }}