Skip to content

Continous Integration Pipeline #5

Continous Integration Pipeline

Continous Integration Pipeline #5

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
strategy:
matrix:
dotnet-version: [ '2.0.x', '8.0.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
netframework:
runs-on: windows-latest
steps:
- name: Setup .NET Framework 4.6.2
uses: actions/setup-dotnet@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 HtmlToOpenXml.Tests.dll