Skip to content

Commit 9080f2c

Browse files
committed
(build) publish test results with cake
1 parent 3141dd5 commit 9080f2c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/ci.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ jobs:
105105
name: Unit Test code
106106
needs: [prepare]
107107
runs-on: ${{ matrix.os }}
108+
env:
109+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
108110
strategy:
109111
matrix:
110112
os: [windows-latest, ubuntu-latest, macos-latest]
@@ -136,11 +138,6 @@ jobs:
136138
name: '[Build]'
137139
shell: pwsh
138140
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/
144141

145142
artifacts_windows_test:
146143
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(UnitTest))]
7+
[IsDependentOn(typeof(PublishCoverage))]
88
public class Test : FrostingTask<BuildContext>
99
{
1010
}

0 commit comments

Comments
 (0)