Skip to content

feat: generate infer-action workflow for infer orchestrator - #262

Merged
edenreich merged 4 commits into
mainfrom
feat/issue-260-20260714-1529
Jul 14, 2026
Merged

edenreich merged 4 commits into
mainfrom
feat/issue-260-20260714-1529

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Enables adl generate to scaffold a GitHub Actions workflow that runs the Inference Gateway infer orchestrator whenever spec.development.ai.orchestrators.infer.enabled: true is set. Previously enabling infer only produced the shared AGENTS.md; the CI-side action wiring had to be added by hand in every agent repo.

What changed

  • New template internal/templates/common/github/workflows/ai-infer.yaml.tmpl - generates .github/workflows/infer.yml using inference-gateway/[email protected] (latest release), gated on @infer mentions to match the sibling claude/codex/gemini workflows.
  • schema.AIHasOfficialAction now returns true for infer, so the generator emits its workflow.
  • generateAIWorkflows (in internal/generator/generator.go) wires the infer workflow into the per-agent workflow loop, so it is regenerated on adl generate --overwrite and skipped when listed in .adl-ignore (via the existing ignoreChecker).
  • .gitattributes template marks .github/workflows/infer.yml as linguist-generated when infer is enabled.
  • New example examples/go-agent-ai.yaml (enables claudecode + infer), wired into both examples:test and examples:generate in Taskfile.yml.
  • Tests: updated TestAIHasOfficialAction, the shared-AGENTS.md and all-agents generator tests, and added TestGenerator_AI_InferWorkflowContent covering the rendered workflow + .gitattributes entry.
  • Docs: README AI matrix, code sample, and linguist-generated file list updated.

Acceptance criteria

  • adl generate emits an infer-action workflow when infer.enabled: true
  • The workflow is regenerated on adl generate --overwrite unless listed in .adl-ignore
  • No workflow is generated when the flag is absent or false
  • Documentation updated to describe the new generated artifact

Verification

  • go test ./..., go vet ./..., task lint (0 issues), task verify-schema all pass
  • task examples:test + task examples:generate succeed; the generated infer.yml pins inference-gateway/[email protected] and renders the ${{ secrets.* }} references correctly

Note: The generated workflow defaults to model: deepseek/deepseek-v4-flash with DEEPSEEK_API_KEY (matching the upstream quick-start and the org convention); users can swap the model/provider and a /model provider/name override per-run still wins.

Closes #260

Comment thread internal/generator/ai_test.go Resolved
Comment thread internal/generator/ai_test.go Resolved
Comment thread internal/generator/ai_test.go Resolved
Comment thread internal/generator/ai_test.go Resolved
@edenreich
edenreich merged commit 66c526a into main Jul 14, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-260-20260714-1529 branch July 14, 2026 16:23
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 14, 2026
## [0.47.0](v0.46.5...v0.47.0) (2026-07-14)

### ✨ Features

* generate infer-action workflow for infer orchestrator ([#262](#262)) ([66c526a](66c526a))
* **workflows:** add workflow_dispatch with free-text prompt to claude-code template ([#263](#263)) ([012a227](012a227))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.47.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Generate infer-action workflow when spec.development.ai.orchestrators.infer is enabled

1 participant