To enable AI query testing in the CI workflow, configure these secrets:
Go to: Repository Settings → Secrets and variables → Actions → New repository secret
Name: AI_PROVIDER Value: openrouter Name: FOLD_OPENROUTER_API_KEY Value: <your-openrouter-api-key> Name: AI_PROVIDER Value: ollama Name: OLLAMA_BASE_URL Value: http://your-ollama-server:11434
✅ The main CI workflow runs all tests with cargo test --workspace
ℹ️ Only the test_ai_query_workflow test requires AI configuration
See GITHUB_ACTIONS_SETUP.md for:
- Complete setup instructions
- Environment variable reference
- Troubleshooting guide
- Testing locally
- Security best practices
| Workflow | Purpose | Trigger | AI Required |
|---|---|---|---|
ci-tests.yml | Run all tests (Rust + Frontend) | Push/PR | Optional* |
coverage.yml | Generate code coverage | Push/PR | No |
release.yml | Build release binaries | Version tags | No |
*AI secrets are optional - if not set, the AI query test will fail but other tests will still pass.
The release.yml workflow automatically builds binaries when you push a version tag:
Platforms:
- macOS (Intel x86_64)
- macOS (Apple Silicon aarch64)
- Linux (x86_64)
How to trigger a release:
# 1. Update version in Cargo.toml # 2. Commit changes git add . git commit -m "Release v0.1.6" # 3. Create and push version tag git tag v0.1.6 git push origin mainline --tags # 4. GitHub Actions will automatically: # - Build binaries for all platforms # - Create a GitHub release # - Attach binaries as release assetsRelease binaries are named:
folddb_server-macos-x86_64-{version}folddb_server-macos-aarch64-{version}folddb_server-linux-x86_64-{version}
For detailed workflow validation and troubleshooting, see RELEASE_WORKFLOW_VALIDATION.md.
- Go to https://openrouter.ai
- Sign up for an account
- Generate an API key
- Add credits to your account
- Add the key as
FOLD_OPENROUTER_API_KEYsecret
- Install Ollama: https://ollama.ai
- Run Ollama server:
ollama serve - Ensure it's accessible at a URL
- Add the URL as
OLLAMA_BASE_URLsecret
For setup help, see the detailed guide: GITHUB_ACTIONS_SETUP.md