Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -247,4 +246,4 @@ jobs:
# else
# echo "Errors: ${ERRORS[@]}, please run the tests locally to fix the errors"
# exit 1
# fi
# fi
Loading