Skip to content

Continous Integration Pipeline #7

Continous Integration Pipeline

Continous Integration Pipeline #7

Workflow file for this run

# 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: .NET
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
netcore:
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
netframework:
runs-on: windows-latest
steps:
- name: Setup .NET Framework 4.6.2
uses: microsoft/setup-msbuild@v2
with:
dotnet-version: 4.6.2
- name: Build
run: msbuild HtmlToOpenXml.sln /p:Configuration=Release
- name: Run tests (NET Framework)
run: vstest.console.exe /test/HtmlToOpenXml.Tests/HtmlToOpenXml.Tests.dll