Skip to content

Commit 70d19a4

Browse files
ci(github): fix cli version integration test
Updated `.github/workflows/test.yml` so Verify CLI version matches the actual output shape: ``` code-ollama/0.0.0 darwin-arm64 node-v24.11.1 ```
1 parent 36ae24d commit 70d19a4

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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)
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: |

0 commit comments

Comments
 (0)