From a670a9466a9f362dea655344c80e157e2c8d84f2 Mon Sep 17 00:00:00 2001 From: Hassan Faghihi Date: Mon, 22 Apr 2024 04:54:49 +0330 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a13005f..801fc8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: uses: microsoft/setup-msbuild@v1 - name: Setup NuGet.exe for use with actions - uses: NuGet/setup-nuget@v1.0.2 + uses: nuget/setup-nuget@v2 - name: Update NuGet run: nuget.exe update -self @@ -104,4 +104,25 @@ jobs: - run: echo '${{ steps.stepid.outputs.dotnet-version }}' - name: Build .NET Framework Project - run: msbuild /t:restore /p:Configuration=Release Tests/AdvancedRestHandler.Test_NetFramework/AdvancedRestHandler.Test_NetFramework.csproj \ No newline at end of file + run: msbuild /t:restore /p:Configuration=Release Tests/AdvancedRestHandler.Test_NetFramework/AdvancedRestHandler.Test_NetFramework.csproj + + + +###### MATRIX STRATEGY .... CHECK IF ARH SUPPORTS +# name: NuGet Restore +# on: [ push, pull_request ] +# jobs: +# build: +# runs-on: ${{ matrix.os }} +# strategy: +# matrix: +# os: [ windows-latest, ubuntu-latest, macOS-latest ] +# nuget: [ latest, preview, 4.x, 5.3.1 ] +# name: NuGet@${{ matrix.nuget }} sample +# steps: +# - uses: actions/checkout@master +# - name: Setup NuGet.exe +# uses: nuget/setup-nuget@v2 +# with: +# nuget-version: ${{ matrix.nuget }} +# - run: nuget restore MyProject.sln \ No newline at end of file