Skip to content

Commit e7dd5ec

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 e7dd5ec

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,17 @@ 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+
actual=$(code-ollama --version)
69+
printf '%s\n' "$actual"
70+
expected="$(node -p "require('./package.json').version")"
71+
grep -F "$expected" <<< "$actual"
7172
7273
- name: Verify CLI help
7374
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"
75+
output=$(code-ollama --help)
76+
printf '%s\n' "$output"
77+
grep -F "code-ollama" <<< "$output"
78+
grep -F "run <model> <prompt>" <<< "$output"
7879
7980
- name: Verify CLI run
8081
run: |

0 commit comments

Comments
 (0)