Skip to content

Commit

Permalink
ci: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Jun 26, 2024
1 parent 711381e commit be6eae5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/check_rule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be6eae5

Please sign in to comment.