Skip to content

Commit

Permalink
(build) publish test results with cake
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Aug 18, 2021
1 parent 3141dd5 commit 9080f2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
name: Unit Test code
needs: [prepare]
runs-on: ${{ matrix.os }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
Expand Down Expand Up @@ -136,11 +138,6 @@ jobs:
name: '[Build]'
shell: pwsh
run: dotnet run/build.dll --target=Test --dotnet_target=${{ matrix.targetFramework }}
-
name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
directory: ./artifacts/test-results/

artifacts_windows_test:
name: Test artifacts on windows
Expand Down
2 changes: 1 addition & 1 deletion build/build/Tasks/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Build.Tasks
{
[TaskName(nameof(Test))]
[TaskDescription("(CI only) Run the tests and publish the results")]
[IsDependentOn(typeof(UnitTest))]
[IsDependentOn(typeof(PublishCoverage))]
public class Test : FrostingTask<BuildContext>
{
}
Expand Down

0 comments on commit 9080f2c

Please sign in to comment.