Skip to content

Commit 76884ad

Browse files
committed
Update GitHub actions
* Use Test Reported * Disable Stryker * Fix coverage uploading
1 parent 50e403b commit 76884ad

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ jobs:
5252
uses: actions/upload-artifact@v4
5353
if: always()
5454
with:
55-
name: TestResults (${{ runner.os }})
56-
path: TestResults-*.html
55+
name: TestResults-${{ runner.os }}.trx
56+
path: "*.trx"
5757
- name: ☂️ Upload coverage report to Codecov
5858
env:
5959
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6060
if: matrix.os == 'ubuntu-latest' && env.CODECOV_TOKEN != ''
6161
uses: codecov/codecov-action@v4
6262
with:
63-
files: coverage/*/coverage.cobertura.xml
63+
files: coverage/*/*.cobertura.xml
6464
token: ${{ env.CODECOV_TOKEN }}
6565
- name: ☂️ Upload coverage report to Codacy
6666
env:
@@ -69,7 +69,7 @@ jobs:
6969
uses: codacy/codacy-coverage-reporter-action@v1
7070
with:
7171
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
72-
coverage-reports: coverage/*/coverage.cobertura.xml
72+
coverage-reports: coverage/*/*.cobertura.xml
7373
- name: 📦 Create NuGet package
7474
run: dotnet pack --no-build --output .
7575
- name: 📤 Upload NuGet package artifact
@@ -81,7 +81,7 @@ jobs:
8181
- name: 👽 Run mutation tests and upload report to Stryker dashboard
8282
env:
8383
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
84-
if: matrix.os == 'ubuntu-latest' && env.STRYKER_DASHBOARD_API_KEY != ''
84+
if: matrix.os == 'DISABLED' && env.STRYKER_DASHBOARD_API_KEY != ''
8585
run: |
8686
dotnet tool restore
8787
dotnet tool run dotnet-stryker --reporter dashboard --open-report:dashboard --version ${GITHUB_REF_NAME} --dashboard-api-key ${{ env.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/test-report.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Test Report'
2+
3+
on:
4+
workflow_run:
5+
workflows: ['Continuous Integration']
6+
types:
7+
- completed
8+
9+
permissions:
10+
checks: write
11+
12+
jobs:
13+
report:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
os: [ Linux, macOS, Windows ]
18+
fail-fast: false
19+
steps:
20+
- uses: dorny/test-reporter@v1
21+
with:
22+
artifact: TestResults-${{ matrix.os }}.trx
23+
name: Test Results (${{ matrix.os }})
24+
path: '*.trx'
25+
reporter: dotnet-trx

serilog-formatting-log4net.sln

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ ProjectSection(SolutionItems) = preProject
55
global.json = global.json
66
NuGet.config = NuGet.config
77
.config\dotnet-tools.json = .config\dotnet-tools.json
8-
.github\workflows\continuous-integration.yml = .github\workflows\continuous-integration.yml
98
src\packages.lock.json = src\packages.lock.json
109
.github\dependabot.yml = .github\dependabot.yml
1110
MAINTENANCE.md = MAINTENANCE.md
@@ -18,6 +17,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Formatting.Log4Net"
1817
EndProject
1918
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Formatting.Log4Net.Tests", "tests\Serilog.Formatting.Log4Net.Tests.csproj", "{E94ABEEA-1E45-42DE-9752-896974FC4389}"
2019
EndProject
20+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{7AA372D2-2CE3-417F-ADA5-FD96743FCAB1}"
21+
ProjectSection(SolutionItems) = preProject
22+
.github\workflows\continuous-integration.yml = .github\workflows\continuous-integration.yml
23+
.github\workflows\test-report.yml = .github\workflows\test-report.yml
24+
EndProjectSection
25+
EndProject
2126
Global
2227
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2328
Debug|Any CPU = Debug|Any CPU
@@ -33,4 +38,7 @@ Global
3338
{E94ABEEA-1E45-42DE-9752-896974FC4389}.Release|Any CPU.ActiveCfg = Release|Any CPU
3439
{E94ABEEA-1E45-42DE-9752-896974FC4389}.Release|Any CPU.Build.0 = Release|Any CPU
3540
EndGlobalSection
41+
GlobalSection(NestedProjects) = preSolution
42+
{7AA372D2-2CE3-417F-ADA5-FD96743FCAB1} = {F0707B5E-7B54-4D36-993B-17293615DEF7}
43+
EndGlobalSection
3644
EndGlobal

0 commit comments

Comments
 (0)