File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,16 +65,21 @@ jobs:
6565
6666 - name : Verify CLI version
6767 run : |
68- version_output=$(code-ollama --version)
69- printf '%s\n' "$version_output"
70- [ "$version_output" = "$(node -p "require('./package.json').version")" ]
68+ set -x
69+ command -v code-ollama
70+ which code-ollama
71+ actual=$(code-ollama --version 2>&1)
72+ printf '%s\n' "$actual"
73+ expected="$(node -p "require('./package.json').version")"
74+ printf 'expected=%s\n' "$expected"
75+ grep -F "$expected" <<< "$actual"
7176
7277 - name : Verify CLI help
7378 run : |
74- help_output =$(code-ollama --help)
75- printf '%s\n' "$help_output "
76- grep -F "code-ollama" <<< "$help_output "
77- grep -F "run <model> <prompt>" <<< "$help_output "
79+ output =$(code-ollama --help)
80+ printf '%s\n' "$output "
81+ grep -F "code-ollama" <<< "$output "
82+ grep -F "run <model> <prompt>" <<< "$output "
7883
7984 - name : Verify CLI run
8085 run : |
You can’t perform that action at this time.
0 commit comments