Skip to content

PDF2IMG-173: Expand Actions workflow to build/run samples with NuGet package #5

PDF2IMG-173: Expand Actions workflow to build/run samples with NuGet package

PDF2IMG-173: Expand Actions workflow to build/run samples with NuGet package #5

name: test-nuget-package-with-samples
on:
pull_request:
push:
branches: [ develop ]
env:
DOTNET_VERSION: '6.x'
jobs:
build-and-run-samples:
runs-on: windows-2022
strategy:
matrix: { dir: ['ConvertToJpg'] }
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build samples
working-directory: ${{ matrix.dir }}
run: dotnet build --configuration Release
- name: Run samples
working-directory: ${{ matrix.dir }}
run: dotnet run --configuration Release
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
path: ${{ matrix.dir }}/**