Skip to content

Commit

Permalink
(build) publish test results with GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Aug 18, 2021
1 parent ede1f10 commit f173203
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ 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 @@ -138,6 +136,11 @@ 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(PublishCoverage))]
[IsDependentOn(typeof(UnitTest))]
public class Test : FrostingTask<BuildContext>
{
}
Expand Down

0 comments on commit f173203

Please sign in to comment.