From 2fe7e2a10a6003d660da982d96d98be28d0f86fb Mon Sep 17 00:00:00 2001 From: Michiel Degezelle Date: Wed, 5 Nov 2025 16:03:19 +0100 Subject: [PATCH] Only run the liquid tests once --- .github/workflows/run_tests.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 703667f..7454482 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -1,6 +1,6 @@ name: run-liquid-tests run-name: Run liquid tests of updated reconciliations and reconciliations that use updated shared parts -on: +on: workflow_call: pull_request: @@ -30,7 +30,7 @@ jobs: with: since_last_remote_commit: false dir_names: false - ref: 'main' + ref: "main" files: | **/**.{liquid,yml,yaml,json} - name: Filter templates changed @@ -161,14 +161,13 @@ jobs: echo '${{ secrets.CONFIG_JSON }}' > $HOME/.silverfin/config.json # RUN TEST echo "Running tests for ${HANDLE} in firm ${FIRM_ID}" - FORMATTED_OUTPUT=$(node ./node_modules/silverfin-cli/bin/cli.js run-test --handle "${HANDLE}" --firm "${FIRM_ID}") OUTPUT=$(node ./node_modules/silverfin-cli/bin/cli.js run-test --handle "${HANDLE}" --firm "${FIRM_ID}" --status 2>&1) # CHECK OUTPUT if [[ "$OUTPUT" =~ "PASSED" ]]; then echo "${HANDLE}: passed" elif [[ "$OUTPUT" =~ "FAILED" ]]; then echo "${HANDLE}: failed" - echo "Details of test run: ${FORMATTED_OUTPUT}" + echo "Details of test run: ${OUTPUT}" ERRORS+=("${HANDLE}") else echo "${HANDLE}: other errors: ${OUTPUT}" @@ -247,4 +246,4 @@ jobs: # else # echo "Errors: ${ERRORS[@]}, please run the tests locally to fix the errors" # exit 1 - # fi \ No newline at end of file + # fi