From be6eae57b980b9dec1f3901c6c9f811888885a7c Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Wed, 26 Jun 2024 10:20:02 -0700 Subject: [PATCH] ci: more tests --- scripts/check_rule.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/check_rule.sh b/scripts/check_rule.sh index ab5848b..bc3bc21 100755 --- a/scripts/check_rule.sh +++ b/scripts/check_rule.sh @@ -47,20 +47,20 @@ check_pass_conditions() { exit 1 fi - RESULT=$(vale --config="$config_file" --no-exit --output=line "$pass_md_file" | wc -l) - + RESULT=$(vale --config="$config_file" --no-exit --output=line "$pass_md_file" | wc -l) if [ "$RESULT" -ne 0 ]; then - echo "$package_name/$rule_name fail condition test - ❌" - log=$(vale --config="$config_file" --output=line "$pass_md_file") - echo "Debug: $log" + echo "$package_name/$rule_name fail condition test - ❌" + log=$(vale --config="$config_file" --output=line "$pass_md_file") + echo "Debug: $log" failed_tests=$((failed_tests + 1)) - return 1 + return 1 fi echo "$package_name/$rule_name pass condition test - ✅" } + # This function checks the fail conditions for the Vale rule. A file with the name fail.md is expected to be present. # The function takes one argument which is the base directory # The expected folder structure is base_directory/.vale.ini and base_directory/fail.md