From 8943809050f02cdfa9a7417be311d1e54674dcb0 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 5 Feb 2023 00:07:52 +0100 Subject: [PATCH] build master branch after merge or push (#390) * Update ci.yml * Add codecov * Remove codecov for now * Add coverlet.collector and codecov Former-commit-id: 5bd17dc44f0cc5e394db264845de234112e414ef --- .github/workflows/ci.yml | 15 ++++++++++++++- FFMpegCore.Test/FFMpegCore.Test.csproj | 4 ++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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