2020-02-16 09:46:30 +00:00
|
|
|
name: CI
|
2020-10-27 11:08:18 +00:00
|
|
|
|
|
|
|
on:
|
2023-02-04 23:07:52 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- .github/workflows/ci.yml
|
|
|
|
- FFMpegCore/**
|
|
|
|
- FFMpegCore.Test/**
|
2020-10-27 11:08:18 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-02-16 22:58:20 +00:00
|
|
|
- main
|
2020-10-27 11:08:18 +00:00
|
|
|
- release
|
2022-03-24 20:27:16 +00:00
|
|
|
paths:
|
2022-03-24 20:28:55 +00:00
|
|
|
- .github/workflows/ci.yml
|
2022-03-24 20:27:16 +00:00
|
|
|
- FFMpegCore/**
|
|
|
|
- FFMpegCore.Test/**
|
2020-10-27 11:08:18 +00:00
|
|
|
|
2020-02-16 09:46:30 +00:00
|
|
|
jobs:
|
2020-02-21 16:57:25 +00:00
|
|
|
ci:
|
2020-12-05 23:59:51 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-01-31 22:11:08 +00:00
|
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
|
|
timeout-minutes: 7
|
2020-02-16 09:46:30 +00:00
|
|
|
steps:
|
2023-01-28 10:08:55 +00:00
|
|
|
|
2020-12-05 23:53:11 +00:00
|
|
|
- name: Checkout
|
2023-01-28 10:25:28 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-01-28 10:08:55 +00:00
|
|
|
|
2020-12-07 17:07:23 +00:00
|
|
|
- name: Prepare .NET
|
2023-01-29 21:55:47 +00:00
|
|
|
uses: actions/setup-dotnet@v3
|
2020-12-07 17:07:23 +00:00
|
|
|
with:
|
2023-01-29 21:55:47 +00:00
|
|
|
dotnet-version: '7.0.x'
|
2023-01-28 10:08:55 +00:00
|
|
|
|
2023-02-02 20:19:45 +00:00
|
|
|
- name: Lint with dotnet
|
|
|
|
run: dotnet format FFMpegCore.sln --severity warn --verify-no-changes
|
|
|
|
|
2020-02-16 10:13:21 +00:00
|
|
|
- name: Prepare FFMpeg
|
2023-01-31 22:10:18 +00:00
|
|
|
uses: FedericoCarboni/setup-ffmpeg@v2
|
2023-01-28 10:08:55 +00:00
|
|
|
with:
|
2023-01-28 10:12:25 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2023-01-28 10:08:55 +00:00
|
|
|
|
2020-02-16 09:46:30 +00:00
|
|
|
- name: Test with dotnet
|
2023-02-04 23:07:52 +00:00
|
|
|
run: dotnet test FFMpegCore.sln --collect "XPlat Code Coverage" --logger GitHubActions
|
|
|
|
|
2023-02-21 15:49:47 +00:00
|
|
|
- if: matrix.os == 'windows-latest'
|
|
|
|
name: Upload coverage reports to Codecov
|
2023-02-04 23:07:52 +00:00
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
directory: FFMpegCore.Test/TestResults
|
|
|
|
fail_ci_if_error: true
|