From 1b065680a41b0a2284f3727753b6975edec48846 Mon Sep 17 00:00:00 2001 From: Sahara Yousuf Date: Thu, 18 Apr 2024 12:19:49 -0500 Subject: [PATCH] Fix matrix dir --- .github/workflows/test-dotnet-samples.yml | 2 +- .github/workflows/test.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-dotnet-samples.yml b/.github/workflows/test-dotnet-samples.yml index adff076..0a9741d 100644 --- a/.github/workflows/test-dotnet-samples.yml +++ b/.github/workflows/test-dotnet-samples.yml @@ -144,7 +144,7 @@ jobs: run: | sample_name=$(basename "$PWD") - sleep 3s + if [ "$sample_name" == "Redactions" ] && [ "${{matrix.os}}" == 'ubuntu-latest' ]; then echo "Not available on this os" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d939fe..0ef7943 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: test-samples +name: test-staggered-workflow on: pull_request: @@ -13,8 +13,7 @@ on: env: DOTNET_VERSION: '6.x' MATRIX_DIR: | - [ - "Annotations/Annotations/", + ( "Annotations/Annotations/", "Annotations/InkAnnotations/", "Annotations/LinkAnnotation/", "Annotations/PolygonAnnotations/", @@ -96,7 +95,7 @@ env: "Text/RegexExtractText/", "Text/RegexTextSearch/", "Text/TextExtract/" - ] + ) jobs: run-samples-windows: @@ -107,7 +106,7 @@ jobs: strategy: fail-fast: false matrix: - dir: ${{ fromJson(env.MATRIX_DIR) }} + dir: ${MATRIX_DIR} steps: - name: Checkout uses: actions/checkout@v4 @@ -165,7 +164,7 @@ jobs: strategy: fail-fast: false matrix: - dir: ${{ fromJson(env.MATRIX_DIR) }} + dir: ${MATRIX_DIR} needs: [run-samples-windows] steps: - name: Checkout @@ -235,7 +234,7 @@ jobs: runs-on: macos-14 strategy: matrix: - dir: ${{ fromJson(env.MATRIX_DIR) }} + dir: ${MATRIX_DIR} needs: [run-samples-ubuntu] steps: - name: Checkout