From 84bfa063af82bdd3fa741344f8eca1096acdf25b Mon Sep 17 00:00:00 2001 From: Mathew Topper Date: Wed, 18 Sep 2024 17:08:35 +0100 Subject: [PATCH] products needs to be a basic string not array --- .github/workflows/all-tests-reusable.yml | 2 +- .github/workflows/changed-tests.yml | 2 +- .github/workflows/run-tests-reusable.yml | 2 +- getTestTargets.m | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/all-tests-reusable.yml b/.github/workflows/all-tests-reusable.yml index c4f576e..dd57b91 100644 --- a/.github/workflows/all-tests-reusable.yml +++ b/.github/workflows/all-tests-reusable.yml @@ -38,7 +38,7 @@ jobs: run: | echo "folder=$(cat folder.json | jq -cr)" >> $GITHUB_OUTPUT echo "include=$(cat include.json | jq -cr)" >> $GITHUB_OUTPUT - echo "products=$(cat products.json | jq -cr)" >> $GITHUB_OUTPUT + echo "products=$(cat products.txt)" >> $GITHUB_OUTPUT run_tests: name: Run tests needs: targets diff --git a/.github/workflows/changed-tests.yml b/.github/workflows/changed-tests.yml index 33e1232..5a85733 100644 --- a/.github/workflows/changed-tests.yml +++ b/.github/workflows/changed-tests.yml @@ -48,7 +48,7 @@ jobs: run: | echo "folder=$(cat folder.json | jq -cr)" >> $GITHUB_OUTPUT echo "include=$(cat include.json | jq -cr)" >> $GITHUB_OUTPUT - echo "products=$(cat products.json | jq -cr)" >> $GITHUB_OUTPUT + echo "products=$(cat products.txt)" >> $GITHUB_OUTPUT run_tests: name: Run tests needs: targets diff --git a/.github/workflows/run-tests-reusable.yml b/.github/workflows/run-tests-reusable.yml index df2a2c7..f9ab326 100644 --- a/.github/workflows/run-tests-reusable.yml +++ b/.github/workflows/run-tests-reusable.yml @@ -68,7 +68,7 @@ jobs: - name: Install MATLAB uses: matlab-actions/setup-matlab@v2 with: - products: ${{ fromJSON(inputs.products) }} + products: ${{ inputs.products }} release: ${{ matrix.release }} cache: true - name: Start display server (Desalination on Linux) diff --git a/getTestTargets.m b/getTestTargets.m index e382985..3c9ff07 100644 --- a/getTestTargets.m +++ b/getTestTargets.m @@ -23,9 +23,9 @@ function getTestTargets(diffFile) fclose(fid); products = getProducts(all_targets); - filename = 'products.json'; + filename = 'products.txt'; fid = fopen(filename, 'w'); - fprintf(fid, '%s', jsonencode(products)); + fprintf(fid, '%s', strjoin(products)); fclose(fid); include_struct = struct('folder', targets);