File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ set -euo pipefail
2626
2727REPO=" ${INPUT_PATH:- .} "
2828STANDARDS_DIR=" ${STANDARDS_DIR:- $(cd " $REPO /.." && pwd)/ standards} "
29+ case " $STANDARDS_DIR " in
30+ /* ) ;;
31+ * ) STANDARDS_DIR=" $PWD /$STANDARDS_DIR " ;;
32+ esac
2933VALIDATOR=" $STANDARDS_DIR /1-formats/k9/tools/k9-validate.sh"
3034
3135if [ ! -f " $VALIDATOR " ]; then
Original file line number Diff line number Diff line change @@ -104,6 +104,14 @@ jobs:
104104 set -euo pipefail
105105 rm -rf "$RUNNER_TEMP/standards-k9"
106106 mv "$PWD/.standards-k9" "$RUNNER_TEMP/standards-k9"
107+ if [ ! -f "$RUNNER_TEMP/standards-k9/1-formats/k9/tools/k9-validate.sh" ]; then
108+ echo "::error::K9 validator is missing from the standards checkout"
109+ exit 1
110+ fi
111+ if ! command -v nickel >/dev/null 2>&1; then
112+ echo "::error::nickel is required for K9 layer L2 validation"
113+ exit 1
114+ fi
107115 STANDARDS_DIR="$RUNNER_TEMP/standards-k9" bash .github/hooks/validate-k9.sh
108116
109117 # ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change 3939 entry : bash .github/hooks/validate-k9.sh
4040 language : system
4141 pass_filenames : false
42- files : ' \.k9(\.ncl)?$'
42+ files : ' \.k9(\.( ncl|lock) )?$'
4343
4444 # --- Shell linting ---
4545 - repo : https://github.com/shellcheck-py/shellcheck-py
You can’t perform that action at this time.
0 commit comments