From 4ab6ce46106aa30153a0fe10cfaef460cc4405bc Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Sat, 15 Oct 2022 08:47:07 +0300 Subject: [PATCH] tweaks --- .github/workflows/pr_ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_ci.yml b/.github/workflows/pr_ci.yml index d7a648a211ed..bbc05d47950e 100644 --- a/.github/workflows/pr_ci.yml +++ b/.github/workflows/pr_ci.yml @@ -14,16 +14,23 @@ jobs: os: [ubuntu-latest, windows-latest] name: Build & Test steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v3 + - uses: actions/checkout@v3 + - name: Setup .NET 6.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + uses: actions/cache@v3 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} restore-keys: | ${{ runner.os }}-nuget- + - name: Restore + run: | + dotnet restore --configuration Release --framework net6.0 --verbosity normal - name: Build run: | - dotnet build --configuration Release --framework net6.0 /p:CreateHardLinksForCopyLocalIfPossible=true /p:CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=true /p:CreateHardLinksForPublishFilesIfPossible=true + dotnet build --no-restore --configuration Release --framework net6.0 /p:CreateHardLinksForCopyLocalIfPossible=true /p:CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=true /p:CreateHardLinksForPublishFilesIfPossible=true /p:CreateHardLinksForAdditionalFilesIfPossible=true /p:CreateHardLinksForCopyAdditionalFilesIfPossible=true - name: Unit Tests run: | dotnet test -c Release --no-restore --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj @@ -34,7 +41,7 @@ jobs: npm install npm run cms:test npm run mvc:test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: matrix.os == 'ubuntu-latest' && failure() with: name: functional-test-failure