FFMpegCore/.github/workflows/ci.yml

40 lines
809 B
YAML
Raw Normal View History

2020-02-16 10:46:30 +01:00
name: CI
2020-10-27 12:08:18 +01:00
on:
pull_request:
branches:
- master
- release
2022-03-24 21:27:16 +01:00
paths:
- .github/workflows/ci.yml
2022-03-24 21:27:16 +01:00
- FFMpegCore/**
- FFMpegCore.Test/**
2020-10-27 12:08:18 +01:00
2020-02-16 10:46:30 +01:00
jobs:
2020-02-21 17:57:25 +01:00
ci:
2020-12-06 00:59:51 +01:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
2023-01-31 23:11:08 +01:00
os: [windows-latest, ubuntu-latest, macos-latest]
timeout-minutes: 7
2020-02-16 10:46:30 +01:00
steps:
2023-01-28 11:08:55 +01:00
2020-12-06 00:53:11 +01:00
- name: Checkout
2023-01-28 11:25:28 +01:00
uses: actions/checkout@v3
2023-01-28 11:08:55 +01:00
2020-12-07 18:07:23 +01:00
- name: Prepare .NET
2023-01-29 22:55:47 +01:00
uses: actions/setup-dotnet@v3
2020-12-07 18:07:23 +01:00
with:
2023-01-29 22:55:47 +01:00
dotnet-version: '7.0.x'
2023-01-28 11:08:55 +01:00
- name: Lint with dotnet
run: dotnet format FFMpegCore.sln --severity warn --verify-no-changes
2020-02-16 11:13:21 +01:00
- name: Prepare FFMpeg
2023-01-31 23:10:18 +01:00
uses: FedericoCarboni/setup-ffmpeg@v2
2023-01-28 11:08:55 +01:00
with:
2023-01-28 11:12:25 +01:00
token: ${{ secrets.GITHUB_TOKEN }}
2023-01-28 11:08:55 +01:00
2020-02-16 10:46:30 +01:00
- name: Test with dotnet
2023-01-29 22:55:47 +01:00
run: dotnet test FFMpegCore.sln --logger GitHubActions