Skip to content

Commit

Permalink
Fix matrix dir
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-saharay committed Apr 18, 2024
1 parent a167dd6 commit 1b06568
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-samples
name: test-staggered-workflow

on:
pull_request:
Expand All @@ -13,8 +13,7 @@ on:
env:
DOTNET_VERSION: '6.x'
MATRIX_DIR: |
[
"Annotations/Annotations/",
( "Annotations/Annotations/",
"Annotations/InkAnnotations/",
"Annotations/LinkAnnotation/",
"Annotations/PolygonAnnotations/",
Expand Down Expand Up @@ -96,7 +95,7 @@ env:
"Text/RegexExtractText/",
"Text/RegexTextSearch/",
"Text/TextExtract/"
]
)
jobs:
run-samples-windows:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b06568

Please sign in to comment.