diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 893b325..71d1855 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -35,16 +35,23 @@ jobs: uses: microsoft/setup-msbuild@v2 - + # Install NuGet CLI + - name: Install NuGet CLI + run: | + choco install nuget.commandline + + # Authenticate with Azure Artifacts + - name: Authenticate with Azure Artifacts + run: | + nuget sources add -name "AzureArtifacts" -source "${{ env.SDL_NUGET }}" -username "AzureArtifacts" -password "${{ secrets.AZURE_ARTIFACT_PAT }}" + + - name: Restore the application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=Release # Execute all unit tests in the solution - name: Execute unit tests run: dotnet test $env:Solution_Name - # Restore the application to populate the obj folder with RuntimeIdentifiers - - name: Restore the application - run: msbuild $env:Solution_Name /t:Restore /p:Configuration=Release - - name: build the application run: msbuild $env:Solution_Name /t:Build /p:Configuration=Release