@@ -38,13 +38,14 @@ jobs:
3838 steps :
3939 - name : Tune GitHub-hosted runner network
4040 uses : smorimoto/tune-github-hosted-runner-network@v1
41+ # Workaround for https://github.com/smorimoto/tune-github-hosted-runner-network/issues/5
42+ if : ${{ matrix.os != 'ubuntu-latest' }}
4143 - name : Setup .NET
4244 uses : actions/setup-dotnet@v6
4345 with :
4446 dotnet-version : |
45- 8.0.*
46- 9.0.*
4747 10.0.*
48+ 11.0.*
4849 - name : Show installed versions
4950 shell : pwsh
5051 run : |
@@ -91,13 +92,19 @@ jobs:
9192 - name : Build
9293 run : dotnet build --no-restore --configuration Release /p:VersionSuffix=${{ env.PACKAGE_VERSION_SUFFIX }}
9394 - name : Test
94- run : dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;annotations-title=@test (@framework);annotations-message=@error\n@trace;summary-include-passed=false"
95+ run : >-
96+ dotnet test --no-build --configuration Release
97+ --coverlet
98+ --results-directory artifacts/test-results
99+ --report-github --report-github-annotations-title="@test (@framework)"
100+ --report-github-annotations-message="@error\n@trace" --report-github-summary-include-passed false
95101 - name : Upload coverage to codecov.io
96102 if : ${{ matrix.os == 'ubuntu-latest' }}
97103 env :
98104 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
99105 uses : codecov/codecov-action@v7
100106 with :
107+ directory : artifacts/test-results
101108 fail_ci_if_error : true
102109 verbose : true
103110 - name : Generate packages
@@ -121,13 +128,14 @@ jobs:
121128 steps :
122129 - name : Tune GitHub-hosted runner network
123130 uses : smorimoto/tune-github-hosted-runner-network@v1
131+ # Workaround for https://github.com/smorimoto/tune-github-hosted-runner-network/issues/5
132+ if : ${{ matrix.os != 'ubuntu-latest' }}
124133 - name : Setup .NET
125134 uses : actions/setup-dotnet@v6
126135 with :
127136 dotnet-version : |
128- 8.0.*
129- 9.0.*
130137 10.0.*
138+ 11.0.*
131139 - name : Git checkout
132140 uses : actions/checkout@v7
133141 with :
@@ -179,13 +187,14 @@ jobs:
179187 steps :
180188 - name : Tune GitHub-hosted runner network
181189 uses : smorimoto/tune-github-hosted-runner-network@v1
190+ # Workaround for https://github.com/smorimoto/tune-github-hosted-runner-network/issues/5
191+ if : ${{ matrix.os != 'ubuntu-latest' }}
182192 - name : Setup .NET
183193 uses : actions/setup-dotnet@v6
184194 with :
185195 dotnet-version : |
186- 8.0.*
187- 9.0.*
188196 10.0.*
197+ 11.0.*
189198 - name : Git checkout
190199 uses : actions/checkout@v7
191200 with :
@@ -227,8 +236,9 @@ jobs:
227236 contents : write
228237 id-token : write
229238 steps :
230- - name : Tune GitHub-hosted runner network
231- uses : smorimoto/tune-github-hosted-runner-network@v1
239+ # Workaround for https://github.com/smorimoto/tune-github-hosted-runner-network/issues/5
240+ # - name: Tune GitHub-hosted runner network
241+ # uses: smorimoto/tune-github-hosted-runner-network@v1
232242 - name : Download package artifacts
233243 uses : actions/download-artifact@v8
234244 with :
0 commit comments