GitHub Actions Workflow

coding · Gemini · free

Write a GitHub Actions workflow for this repo. Language / stack: [DESCRIBE] Package manager: [pnpm / npm / poetry / go mod / cargo] Test command: [EXACT COMMAND] Deploy target on main: [Vercel / Fly / AWS / none] Deliver a single .github/workflows/ci.yml with: Triggers: pull request on all branches, push on main only Concurrency group keyed on ref, cancel in progress on PRs Matrix over the runtime versions I actually support (not "latest + LTS" cargo culted) Cache: package manager cache + build cache with a specific key, not blind / Jobs: lint → typecheck → test → build, each in parallel where independent permissions: set to least privilege at the workflow level (contents: read default) OIDC for cloud auth — no long lived secrets Fail fast off in the matrix (I want to see all failures) A separate deploy job gated on if: github.ref == 'refs/heads/main' + a required environment Total wall time target: under 5 minutes on cache hit

#github-actions #ci-cd #devops