mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1017 B
38 lines
1017 B
name: Pull Request |
|
on: |
|
pull_request: |
|
jobs: |
|
build_and_test: |
|
runs-on: ${{ matrix.os }} |
|
strategy: |
|
fail-fast: false |
|
matrix: |
|
os: [ windows-latest, ubuntu-latest, macos-latest ] |
|
steps: |
|
- name: Get the sources |
|
uses: actions/checkout@v3 |
|
|
|
- name: Setup .NET Core |
|
uses: actions/setup-dotnet@v3 |
|
with: |
|
dotnet-version: 7.0.x |
|
|
|
- name: Clean |
|
run: dotnet clean --configuration Release && dotnet nuget locals all --clear |
|
|
|
- name: Install dependencies |
|
run: dotnet restore |
|
|
|
- name: Prep project file |
|
run: sed -i '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
if: ${{ matrix.os != 'macos-latest' }} |
|
|
|
- name: Prep project file Mac |
|
run: sed -i '' '/Scanner/d' ErsatzTV/ErsatzTV.csproj |
|
if: ${{ matrix.os == 'macos-latest' }} |
|
|
|
- name: Build |
|
run: dotnet build --configuration Release --no-restore |
|
|
|
- name: Test |
|
run: dotnet test --no-restore --verbosity normal
|
|
|