Skip to content

Release V2.1

Release V2.1 #62

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout source
uses: actions/checkout@v2
with:
# Checkout libvt100 & litehtml
submodules: 'true'
# Setup .NET
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
# Restore packages
- name: Restore
run: |
dotnet restore src/WinPrint.Core
dotnet restore src/WinPrint.Console
dotnet restore src/WinPrint.LiteHtml
dotnet restore tests/WinPrint.Core.UnitTests
# Build
- name: Build
run: |
dotnet build --configuration Release --no-restore /p:DefineConstants="CI_BUILD" src/WinPrint.LiteHtml
dotnet build --configuration Release --no-restore /p:DefineConstants="CI_BUILD" src/WinPrint.Core
dotnet build --configuration Release --no-restore /p:DefineConstants="CI_BUILD" src/WinPrint.Console
dotnet build --configuration Release --no-restore /p:DefineConstants="CI_BUILD" tests/WinPrint.Core.UnitTests
# Run Tests
- name: Test
run: dotnet test --no-restore --verbosity normal /p:DefineConstants="CI_BUILD" tests/WinPrint.Core.UnitTests