diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b068c0..c6d3529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: CI on: + push: + branches: + - master + paths: + - .github/workflows/ci.yml + - FFMpegCore/** + - FFMpegCore.Test/** pull_request: branches: - master @@ -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 \ No newline at end of file diff --git a/FFMpegCore.Test/FFMpegCore.Test.csproj b/FFMpegCore.Test/FFMpegCore.Test.csproj index e63c0af..def07d2 100644 --- a/FFMpegCore.Test/FFMpegCore.Test.csproj +++ b/FFMpegCore.Test/FFMpegCore.Test.csproj @@ -8,6 +8,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + all