Skip to content

APDFL-5452: Add CI for samples #18

APDFL-5452: Add CI for samples

APDFL-5452: Add CI for samples #18

name: test-samples
on:
pull_request:
push:
branches: [ develop, main ]
env:
DOTNET_VERSION: '6.x'
jobs:
run-samples:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
dir: [
'Annotations/Annotations/',
'Annotations/InkAnnotations/',
'Annotations/LinkAnnotation/',
'Annotations/PolygonAnnotations/',
'Annotations/PolyLineAnnotations/'
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build samples
working-directory: ${{ matrix.dir }}
run: dotnet build -c Release *.csproj
- name: List files
run: |
ls ${{matrix.dir}}
- name: Run samples
working-directory: ${{matrix.dir}}
run: |

Check failure on line 42 in .github/workflows/test-dotnet-samples.yml

View workflow run for this annotation

GitHub Actions / test-samples

Invalid workflow file

The workflow is not valid. .github/workflows/test-dotnet-samples.yml (Line: 42, Col: 20): Unrecognized named-value: 'dll_name'. Located at position 1 within expression: dll_name
file_path="${{ matrix.dir }}"
dll_name=$(echo "$file_path" | cut -d'/' -f2)
echo "Now running ${{ dll_name }}.dll"
dotnet bin/Release/net6.0/$dll_name