mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
8943809050
* Update ci.yml
* Add codecov
* Remove codecov for now
* Add coverlet.collector and codecov
Former-commit-id: 5bd17dc44f
52 lines
No EOL
1.1 KiB
YAML
52 lines
No EOL
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- .github/workflows/ci.yml
|
|
- FFMpegCore/**
|
|
- FFMpegCore.Test/**
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release
|
|
paths:
|
|
- .github/workflows/ci.yml
|
|
- FFMpegCore/**
|
|
- FFMpegCore.Test/**
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
timeout-minutes: 7
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Prepare .NET
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '7.0.x'
|
|
|
|
- name: Lint with dotnet
|
|
run: dotnet format FFMpegCore.sln --severity warn --verify-no-changes
|
|
|
|
- name: Prepare FFMpeg
|
|
uses: FedericoCarboni/setup-ffmpeg@v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Test with dotnet
|
|
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 |