Skip to content

Commit f173203

Browse files
committed
(build) publish test results with GHA
1 parent ede1f10 commit f173203

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ jobs:
105105
name: Unit Test code
106106
needs: [prepare]
107107
runs-on: ${{ matrix.os }}
108-
env:
109-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
110108
strategy:
111109
matrix:
112110
os: [windows-latest, ubuntu-latest, macos-latest]
@@ -138,6 +136,11 @@ jobs:
138136
name: '[Build]'
139137
shell: pwsh
140138
run: dotnet run/build.dll --target=Test --dotnet_target=${{ matrix.targetFramework }}
139+
-
140+
name: Upload coverage to Codecov
141+
uses: codecov/codecov-action@v2
142+
with:
143+
directory: ./artifacts/test-results/
141144

142145
artifacts_windows_test:
143146
name: Test artifacts on windows

build/build/Tasks/Test.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Build.Tasks
44
{
55
[TaskName(nameof(Test))]
66
[TaskDescription("(CI only) Run the tests and publish the results")]
7-
[IsDependentOn(typeof(PublishCoverage))]
7+
[IsDependentOn(typeof(UnitTest))]
88
public class Test : FrostingTask<BuildContext>
99
{
1010
}

0 commit comments

Comments
 (0)