mirror of
https://github.com/cheikh2shift/godex.git
synced 2026-10-21 02:29:56 -05:00
Enhance installation workflow by adding dummy providers.yaml and UI rendering tests for Linux, macOS, and Windows
This commit is contained in:
1 parent
9a00439531
commit
c5e2ec75db
2 files changed
+57
-5
No files matched your search
@@ -16,6 +16,19 @@ jobs:
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
godex --version
|
||||
- name: Create dummy providers.yaml
|
||||
run: |
|
||||
printf -- 'providers:\n - name: ollama\n' > providers.yaml
|
||||
- name: Test UI rendering
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
echo "--- VERSION ---"
|
||||
godex --version
|
||||
(godex --config providers.yaml --provider ollama --model llama3 > output.txt 2>&1 &)
|
||||
sleep 0.5
|
||||
pkill -f "godex" || true
|
||||
echo "--- OUTPUT ---"
|
||||
cat output.txt
|
||||
|
||||
install-macos-amd64:
|
||||
runs-on: macos-15-intel
|
||||
@@ -26,16 +39,38 @@ jobs:
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
godex --version
|
||||
- name: Create dummy providers.yaml
|
||||
run: |
|
||||
printf -- 'providers:\n - name: ollama\n' > providers.yaml
|
||||
- name: Test UI rendering
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
echo "--- VERSION ---"
|
||||
godex --version
|
||||
(godex --config providers.yaml --provider ollama --model llama3 > output.txt 2>&1 &)
|
||||
sleep 0.5
|
||||
pkill -f "godex" || true
|
||||
echo "--- OUTPUT ---"
|
||||
cat output.txt
|
||||
|
||||
install-macos-arm64:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Download and run install.sh
|
||||
run: curl -sSL https://raw.githubusercontent.com/cheikh2shift/godex/main/install.sh | sh
|
||||
- name: Verify installation
|
||||
- name: Create dummy providers.yaml
|
||||
run: |
|
||||
printf -- 'providers:\n - name: ollama\n' > providers.yaml
|
||||
- name: Test UI rendering
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
echo "--- VERSION ---"
|
||||
godex --version
|
||||
(godex --config providers.yaml --provider ollama --model llama3 > output.txt 2>&1 &)
|
||||
sleep 0.5
|
||||
pkill -f "godex" || true
|
||||
echo "--- OUTPUT ---"
|
||||
cat output.txt
|
||||
|
||||
install-windows:
|
||||
runs-on: windows-latest
|
||||
@@ -57,4 +92,21 @@ jobs:
|
||||
} else {
|
||||
Write-Host "Invalid file - first bytes: $($header[0]) $($header[1])"
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: Create dummy providers.yaml
|
||||
run: |
|
||||
"providers:`n - name: ollama" | Out-File -FilePath providers.yaml -Encoding utf8
|
||||
shell: pwsh
|
||||
|
||||
- name: Test UI rendering
|
||||
run: |
|
||||
Write-Host "--- VERSION ---"
|
||||
./godex-windows-amd64.exe --version
|
||||
$job = Start-Job -ScriptBlock { ./godex-windows-amd64.exe --config providers.yaml --provider ollama --model llama3 }
|
||||
Start-Sleep -Seconds 0.5
|
||||
Stop-Job -Job $job -ErrorAction SilentlyContinue
|
||||
Receive-Job -Job $job | Out-File -FilePath output.txt
|
||||
Write-Host "--- OUTPUT ---"
|
||||
Get-Content output.txt
|
||||
shell: pwsh
|
||||
@@ -9,10 +9,10 @@ External MCP servers are configured in your `~/.godex/providers.yaml` file under
|
||||
You can also manage MCP servers from the CLI:
|
||||
|
||||
```bash
|
||||
godex mcp add --provider ollama --name filesystem --allowed-path /home/user/project
|
||||
godex mcp add --provider ollama --name webscraper --allowed-url https://docs.example.com
|
||||
godex mcp add --provider ollama --name myserver --command /usr/local/bin/my-mcp --args --flag --allowed-path /tmp
|
||||
godex mcp remove --provider ollama --name myserver
|
||||
godex mcp add --provider my-local-identifier --name filesystem --allowed-path /home/user/project
|
||||
godex mcp add --provider my-local-identifier --name webscraper --allowed-url https://docs.example.com
|
||||
godex mcp add --provider my-local-identifier --name myserver --command /usr/local/bin/my-mcp --args --flag --allowed-path /tmp
|
||||
godex mcp remove --provider my-local-identifier --name myserver
|
||||
```
|
||||
|
||||
### MCPServer Structure
|
||||
|
||||
Reference in new issue
Block a user