Skip to content

Commit 5b3c7e4

Browse files
ci(github): fix cli version integration test
Updated `.github/workflows/test.yml` so Verify CLI version matches the actual output shape. It now checks for the stable prefix: ``` code-ollama/<package.json version> ``` instead of requiring the whole output to equal the bare semver. That should survive the platform/runtime suffix you observed: ``` code-ollama/0.0.0 darwin-arm64 node-v24.11.1 ```
1 parent 36ae24d commit 5b3c7e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
run: |
6868
version_output=$(code-ollama --version)
6969
printf '%s\n' "$version_output"
70-
[ "$version_output" = "$(node -p "require('./package.json').version")" ]
70+
expected_version="code-ollama/$(node -p "require('./package.json').version")"
71+
grep -F "$expected_version" <<< "$version_output"
7172
7273
- name: Verify CLI help
7374
run: |

0 commit comments

Comments
 (0)