diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 636bb2c0..4a677f2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: fail-fast: false name: .NET ${{ matrix.DOTNET_VERSION }} runs-on: windows-latest + timeout-minutes: 30 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,10 +39,10 @@ jobs: with: args: 'install opencover.portable codecov -y' - name: Build - run: dotnet build Parse.sln --configuration Debug --no-restore + run: dotnet build Parse.sln --configuration Debug --no-restore /p:DebugType=full /p:GenerateFullPaths=true /p:CollectCoverage=false - name: Run tests with coverage run: | - OpenCover.Console.exe -target:dotnet.exe -targetargs:"test --framework net${{ matrix.DOTNET_VERSION }} --configuration Debug --test-adapter-path:. --logger:console /p:DebugType=full .\Parse.Tests\Parse.Tests.csproj" -filter:"+[Parse*]* -[Parse.Tests*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user + OpenCover.Console.exe -returntargetcode -target:dotnet.exe -targetargs:"test --framework net${{ matrix.DOTNET_VERSION }} --configuration Debug --test-adapter-path:. --logger:console /p:DebugType=full .\Parse.Tests\Parse.Tests.csproj" -filter:"+[Parse*]* -[Parse.Tests*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user - name: Upload code coverage uses: codecov/codecov-action@v4 with: diff --git a/Parse.Tests/Parse.Tests.csproj b/Parse.Tests/Parse.Tests.csproj index ace87ae1..97b9c6ae 100644 --- a/Parse.Tests/Parse.Tests.csproj +++ b/Parse.Tests/Parse.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net6.0;net7.0;net8.0;net9.0 false latest