Release V2.1 #62
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 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 |