Add netstandard2.0 support #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [ 'Release', 'Debug' ] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core 3.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.0.x | |
- name: Setup .NET Core 3.1 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.x | |
- name: Setup .NET 5 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Clean dependencies and caches | |
run: dotnet clean src --configuration ${{ matrix.configuration }} && dotnet nuget locals all --clear | |
- name: Restore dependencies | |
run: dotnet restore src | |
- name: Build | |
run: dotnet build --no-restore --configuration ${{ matrix.configuration }} src | |
- name: Tests | |
run: dotnet test --no-build --configuration ${{ matrix.configuration }} src | |
continue-on-error: ${{ matrix.os == 'macos-latest' }} | |
- name: Tests (Full Framework) | |
run: dotnet test --configuration ${{ matrix.configuration }} src/VCDiff.Tests/VCDiff.Tests.NetFx.csproj | |
if: ${{ matrix.os == 'windows-latest' }} | |
- name: Upload code coverage | |
uses: codecov/[email protected] | |
with: | |
token: 5605db1d-f7eb-4a6b-bb3a-556d61df4d5c | |
directory: src/VCDiff.Tests/ |