-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (43 loc) · 1.39 KB
/
test-nuget-samples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: List files
run: |
ls ${{matrix.dir}}
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: sample-output
path: |
${{matrix.dir}}\*.jpg
${{matrix.dir}}\*.jpeg
${{matrix.dir}}\*.eps
${{matrix.dir}}\*.tiff
${{matrix.dir}}\*.tif
${{matrix.dir}}\*.bmp
${{matrix.dir}}\*.png
${{matrix.dir}}\*.raw
${{matrix.dir}}\*.pdf
${{matrix.dir}}\*.gif