Skip to content

Commit 209062d

Browse files
committed
Give up uploading coverage to Codacy
The Codecov tool can upload the report just fine, excerpt from the logs: > Reading reports. > /home/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests/coverage/coverage.cobertura.xml > Uploading Reports. But the next step (Codacy upload) can't find the exact same file! > error [CodacyCoverageReporter] File /home/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests/coverage/coverage.cobertura.xml does not exist. - (CodacyCoverageReporter.scala:25) GitHub actions [documentation](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idsteps) says that the filesystem is shared between steps. Obviously, else nothing would work after a repository checkout if the filesystem was not shared! > Each step runs in its own process in the runner environment and has access to the workspace and filesystem.
1 parent 8511842 commit 209062d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ jobs:
3535
run: dotnet build --verbosity normal
3636
- name: Run tests
3737
run: dotnet test --no-build --verbosity normal
38-
id: dotnet-test
39-
- name: Upload coverage report to Codacy
40-
uses: codacy/codacy-coverage-reporter-action@master
41-
if: matrix.os == 'ubuntu-latest'
42-
with:
43-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
44-
coverage-reports: ${{ steps.dotnet-test.outputs.coverlet-reports }}
4538
- name: Create NuGet package
4639
run: dotnet pack --output . --no-build --verbosity normal
4740
id: dotnet-pack

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
<Exec WorkingDirectory="$(CoverageReportDirectory)" Command="$(OpenCommand) index.html" Condition="$(OpenCommand) != ''" IgnoreExitCode="true" />
4242
</Target>
4343

44-
<Target Name="PrintCoverletReportsForGitHubActions" AfterTargets="GenerateCoverageResultAfterTest">
45-
<Message Importance="high" Text="::set-output name=coverlet-reports::@(CoverletReport, ',')" />
46-
</Target>
47-
4844
<Target Name="UploadCoverageToCodecov" AfterTargets="GenerateCoverageResultAfterTest" Condition="$(ContinuousIntegrationBuild) == 'true'">
4945
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install Codecov.Tool` -->
5046
<Exec Command="dotnet tool restore" />

0 commit comments

Comments
 (0)