From fcf0309673e68f4c0409144b0c2eb41385978e93 Mon Sep 17 00:00:00 2001 From: Aaron Sherber Date: Sat, 17 Aug 2024 22:14:36 -0400 Subject: [PATCH] Update action --- .github/workflows/CI.yml | 19 ++++++++++++------ .../StaTypPocoQueries.PetaPoco.Tests.csproj | 3 ++- .../StaTypPocoQueries.PetaPoco.csproj | 5 +++-- StaTypPocoQueries.PetaPoco/packages.lock.json | 20 +++++++++---------- 4 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f93b9f3..ead54f1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -4,15 +4,20 @@ env: DOTNET_NOLOGO: 1 jobs: Build: - runs-on: windows-2022 + runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Restore cache - uses: actions/cache@v2 + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8 + + - name: NuGet cache + uses: actions/cache@v4 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} @@ -20,13 +25,15 @@ jobs: ${{ runner.os }}-nuget- - name: Build - run: dotnet build + run: | + dotnet restore --locked-mode + dotnet build - name: Test run: dotnet test --no-build -v normal --logger trx - name: Publish unit test report - uses: dorny/test-reporter@v1 + uses: dorny/test-reporter@v1.9 if: success() || failure() with: name: Unit Test Report diff --git a/StaTypPocoQueries.PetaPoco.Tests/StaTypPocoQueries.PetaPoco.Tests.csproj b/StaTypPocoQueries.PetaPoco.Tests/StaTypPocoQueries.PetaPoco.Tests.csproj index 9ba82ea..a46e978 100644 --- a/StaTypPocoQueries.PetaPoco.Tests/StaTypPocoQueries.PetaPoco.Tests.csproj +++ b/StaTypPocoQueries.PetaPoco.Tests/StaTypPocoQueries.PetaPoco.Tests.csproj @@ -2,7 +2,8 @@ net6.0;net462 - false + false + true diff --git a/StaTypPocoQueries.PetaPoco/StaTypPocoQueries.PetaPoco.csproj b/StaTypPocoQueries.PetaPoco/StaTypPocoQueries.PetaPoco.csproj index 322a0e3..68c6610 100644 --- a/StaTypPocoQueries.PetaPoco/StaTypPocoQueries.PetaPoco.csproj +++ b/StaTypPocoQueries.PetaPoco/StaTypPocoQueries.PetaPoco.csproj @@ -14,7 +14,8 @@ static-64.png README.md petapoco statyppocoqueries statically typed - Upgrade base library to v2 + Upgrade base library to v2 + true true @@ -22,7 +23,7 @@ 1701;1702;1591;1570;1587;CS1573 - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/StaTypPocoQueries.PetaPoco/packages.lock.json b/StaTypPocoQueries.PetaPoco/packages.lock.json index 904e556..703c752 100644 --- a/StaTypPocoQueries.PetaPoco/packages.lock.json +++ b/StaTypPocoQueries.PetaPoco/packages.lock.json @@ -4,18 +4,18 @@ ".NETFramework,Version=v4.5": { "Microsoft.NETFramework.ReferenceAssemblies": { "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", + "requested": "[1.0.3, )", + "resolved": "1.0.3", + "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net45": "1.0.2" + "Microsoft.NETFramework.ReferenceAssemblies.net45": "1.0.3" } }, "Microsoft.NETFramework.ReferenceAssemblies.net45": { "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "Nm14pRmqB+4u2JEMdtngnbDcJidTmswMxOJ992TpTwiwcUTERxLlHwwSh0HiUoRjS0TO0sozsiB0h6FHjCUdEA==" + "requested": "[1.0.3, )", + "resolved": "1.0.3", + "contentHash": "dcSLNuUX2rfZejsyta2EWZ1W5U6ucbFt697lRg1qiTlTM5ZlYv4uAvuxE6ROy6xLWWhLhOaReCDxkhxcajRYtQ==" }, "Nerdbank.GitVersioning": { "type": "Direct", @@ -53,9 +53,9 @@ ".NETStandard,Version=v2.0": { "Microsoft.NETFramework.ReferenceAssemblies.net45": { "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "Nm14pRmqB+4u2JEMdtngnbDcJidTmswMxOJ992TpTwiwcUTERxLlHwwSh0HiUoRjS0TO0sozsiB0h6FHjCUdEA==" + "requested": "[1.0.3, )", + "resolved": "1.0.3", + "contentHash": "dcSLNuUX2rfZejsyta2EWZ1W5U6ucbFt697lRg1qiTlTM5ZlYv4uAvuxE6ROy6xLWWhLhOaReCDxkhxcajRYtQ==" }, "Nerdbank.GitVersioning": { "type": "Direct",