diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa6f2c09..a16822ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,9 +58,14 @@ jobs: - name: Build solution [Debug] working-directory: src run: dotnet build --no-restore -c Debug - - name: Test solution [Debug] + - name: Test solution [Debug] with code coverage + if: ${{ startsWith(matrix.os, 'ubuntu') }} + working-directory: src + run: dotnet test --no-restore --no-build -p:CollectCoverage=true -p:DoesNotReturnAttribute="DoesNotReturnAttribute" + - name: Test solution [Debug] without code coverage + if: ${{ startsWith(matrix.os, 'windows') }} working-directory: src - run: dotnet test --no-restore -p:CollectCoverage=true -p:DoesNotReturnAttribute="DoesNotReturnAttribute" + run: dotnet test --no-restore --no-build - name: Upload coverage to codecov if: ${{ startsWith(matrix.os, 'ubuntu') }} uses: codecov/codecov-action@v3 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index c4ef2c74..b7802df2 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,6 @@ 8.0.0-preview latest - true true CS8766 true diff --git a/src/GraphQLParser/GraphQLParser.csproj b/src/GraphQLParser/GraphQLParser.csproj index d4f96057..7cf41e2d 100644 --- a/src/GraphQLParser/GraphQLParser.csproj +++ b/src/GraphQLParser/GraphQLParser.csproj @@ -15,7 +15,7 @@ - +