Remove disambiguation on code #60
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: 'dotnet.yml' | |
on: | |
push: | |
branches: [ "dev" ] | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
pull_request: | |
jobs: | |
net8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET 8. | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Run tests | |
run: dotnet test --framework net8.0 --configuration Release --no-build --verbosity normal | |
net462: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Framework | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build | |
run: msbuild test/HtmlToOpenXml.Tests/HtmlToOpenXml.Tests.csproj /p:Configuration=Release /p:TargetFramework=net462 /restore | |
- name: Setup VSTest | |
uses: darenm/[email protected] | |
- name: Run tests (NET Framework) | |
run: vstest.console.exe test\HtmlToOpenXml.Tests\bin\Release\net462\HtmlToOpenXml.Tests.dll /parallel |