diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 856f140..6ac5b04 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ concurrency: cancel-in-progress: true env: - VALE_VERSION: "3.8.0" + VALE_VERSION: "3.9.1" jobs: run-ci: diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 7970678..1a7d1f0 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -3,7 +3,7 @@ on: inputs: version: description: "The version of the Vale to use" - default: "3.8.0" + default: "3.9.1" type: string required: false diff --git a/scripts/check_rule.sh b/scripts/check_rule.sh index 11bb13f..b3a9d0f 100755 --- a/scripts/check_rule.sh +++ b/scripts/check_rule.sh @@ -4,9 +4,19 @@ set -e - failed_tests=0 +check_vale_installation() { + if command -v vale &> /dev/null + then + echo "✅ Vale is installed." + else + echo "❌ Vale is not installed." + echo "ℹī¸ Use 'brew install vale' to install it with Homebrew." + exit 1 + fi +} + # Function to get the last directory name from a given path. This is used to get the rule name. get_last_directory_name() { dir_path=$1 @@ -106,6 +116,7 @@ check_fail_conditions() { # This function traverses the base directory and checks the pass and fail conditions for the Vale rules. traverse_and_check() { base_directory=$1 + check_vale_installation # Traverse the packages directory and look one level down for package_dir in "$base_directory"/*; do