From 63d288b7e337638bc7d8d36605689a5ef6cf126b Mon Sep 17 00:00:00 2001 From: Sahara Yousuf Date: Wed, 28 Feb 2024 14:34:25 -0600 Subject: [PATCH] Add step to run samples --- .github/workflows/test-dotnet-samples.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-dotnet-samples.yml b/.github/workflows/test-dotnet-samples.yml index f1335f2..b5bb1eb 100644 --- a/.github/workflows/test-dotnet-samples.yml +++ b/.github/workflows/test-dotnet-samples.yml @@ -20,6 +20,9 @@ jobs: dir: [ 'Annotations/Annotations/' ] + dlls: [ + 'Annotations.dll' + ] steps: - name: Checkout uses: actions/checkout@v4 @@ -27,10 +30,14 @@ jobs: 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: Build samples + - name: Run samples working-directory: ${{ matrix.dir }} run: | - dotnet build -c Release *.csproj + ls ${{ github.workspace }}/${{ matrix.dir }}/bin/Release/net6.0/${{ matrix.dll}} + dotnet ${{ github.workspace }}/${{ matrix.dir }}/bin/Release/net6.0/${{ matrix.dll}}