We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced56f8 commit 672331fCopy full SHA for 672331f
1 file changed
.github/workflows/test.yml
@@ -49,6 +49,16 @@ jobs:
49
- name: Build package
50
run: npm run build
51
52
+ - name: Verify CLI via npm exec
53
+ run: |
54
+ package_archive=$(npm pack | tail -n 1)
55
+ temp_dir=$(mktemp -d)
56
+ cd "$temp_dir"
57
+ output=$(npm exec --yes --package "${GITHUB_WORKSPACE}/${package_archive}" code-ollama -- --help)
58
+ printf '%s\n' "$output"
59
+ grep -F "code-ollama" <<< "$output"
60
+ grep -F "run <model> <prompt>" <<< "$output"
61
+
62
- name: Setup Ollama
63
uses: ai-action/setup-ollama@v2
64
0 commit comments