Skip to content

Commit

Permalink
build master branch after merge or push (#390)
Browse files Browse the repository at this point in the history
* Update ci.yml

* Add codecov

* Remove codecov for now

* Add coverlet.collector and codecov
  • Loading branch information
rosenbjerg authored Feb 4, 2023
1 parent 4ec2005 commit 5bd17dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: CI

on:
push:
branches:
- master
paths:
- .github/workflows/ci.yml
- FFMpegCore/**
- FFMpegCore.Test/**
pull_request:
branches:
- master
Expand Down Expand Up @@ -36,4 +43,10 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Test with dotnet
run: dotnet test FFMpegCore.sln --logger GitHubActions
run: dotnet test FFMpegCore.sln --collect "XPlat Code Coverage" --logger GitHubActions

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
directory: FFMpegCore.Test/TestResults
fail_ci_if_error: true
4 changes: 4 additions & 0 deletions FFMpegCore.Test/FFMpegCore.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.9.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.1">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 5bd17dc

Please sign in to comment.