From 768547694f5214974df5d0dce26d99d8f52c251a Mon Sep 17 00:00:00 2001 From: Adam Paquette Date: Tue, 2 May 2023 12:33:39 -0400 Subject: [PATCH 1/3] Fix instrumentation for code coverage --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2ca68a..d6a9a2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,9 @@ jobs: run: dotnet restore ./Typely.sln - name: Build - run: dotnet build --configuration Release ./Typely.sln + run: | + dotnet build --configuration Debug ./Typely.sln + dotnet build --configuration Release ./Typely.sln - name: Test run: dotnet test --no-restore ./Typely.sln /p:CollectCoverage=true /p:CoverletOutput="../Coverage/" /p:MergeWith="../Coverage/coverage.json" /p:CoverletOutputFormat=\"cobertura,json\" /maxcpucount:1 From 2ef99a2a5a974b657db98232f77fcb24e52a4530 Mon Sep 17 00:00:00 2001 From: Adam Paquette Date: Tue, 2 May 2023 12:40:56 -0400 Subject: [PATCH 2/3] a --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6a9a2e..40d5910 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,9 @@ jobs: run: | dotnet build --configuration Debug ./Typely.sln dotnet build --configuration Release ./Typely.sln + cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.EfCore.Tests/bin/Debug/net7.0/Typely.Core.dll + cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.AspNetCore.Swashbuckle.Tests/bin/Debug/net7.0/Typely.Core.dll + cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.AspNetCore.Tests/bin/Debug/net7.0/Typely.Core.dll - name: Test run: dotnet test --no-restore ./Typely.sln /p:CollectCoverage=true /p:CoverletOutput="../Coverage/" /p:MergeWith="../Coverage/coverage.json" /p:CoverletOutputFormat=\"cobertura,json\" /maxcpucount:1 From 5a75bf35567aa9caccc227c1601cec782b106803 Mon Sep 17 00:00:00 2001 From: Adam Paquette Date: Tue, 2 May 2023 12:51:08 -0400 Subject: [PATCH 3/3] h --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40d5910..0f5c53b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,9 @@ jobs: cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.EfCore.Tests/bin/Debug/net7.0/Typely.Core.dll cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.AspNetCore.Swashbuckle.Tests/bin/Debug/net7.0/Typely.Core.dll cp -f ./src/Typely.Core/bin/Debug/net7.0/Typely.Core.dll ./tests/Typely.AspNetCore.Tests/bin/Debug/net7.0/Typely.Core.dll + cd ./tests/Typely.EfCore.Tests/bin/Debug/net7.0/ + echo Dir: + ls - name: Test run: dotnet test --no-restore ./Typely.sln /p:CollectCoverage=true /p:CoverletOutput="../Coverage/" /p:MergeWith="../Coverage/coverage.json" /p:CoverletOutputFormat=\"cobertura,json\" /maxcpucount:1