Skip to content

feat(ci): add reusable copilot-setup-steps workflow + regression comments#97

Merged
JacobPEvans merged 2 commits intomainfrom
feature/copilot-setup-nix-dry
Mar 15, 2026
Merged

feat(ci): add reusable copilot-setup-steps workflow + regression comments#97
JacobPEvans merged 2 commits intomainfrom
feature/copilot-setup-nix-dry

Conversation

@JacobPEvans
Copy link
Owner

Summary

  • Create _copilot-setup-steps.yml reusable workflow for Nix-based Copilot coding agent environment setup, centralizing the identical copilot-setup-steps.yml copy-pasted across nix-home, nix-darwin, and nix-ai
  • Add regression-prevention comments to _nix-build.yml and _nix-validate.yml clarifying that determinate-nix-action@v3 is ONLY a Nix installer (not a flake checker)
  • Follow-up PRs on consumer repos will replace inline action usage with the new reusable workflow

Test plan

  • Verify _copilot-setup-steps.yml appears in gh workflow list
  • After merge, update nix-home/nix-darwin/nix-ai to call the reusable workflow
  • Verify Copilot coding agents can discover and run setup steps in each repo

🤖 Generated with Claude Code

…ents

Create _copilot-setup-steps.yml reusable workflow for Nix-based Copilot
coding agent environment setup. This centralizes the copilot setup that
was copy-pasted across nix-home, nix-darwin, and nix-ai repos.

Add regression-prevention comments to _nix-build.yml and _nix-validate.yml
clarifying that determinate-nix-action@v3 is ONLY a Nix installer and does
NOT include flake checking (prevents future AI-assisted regressions from
stale training data conflating the two actions).

(claude)
Copilot AI review requested due to automatic review settings March 15, 2026 15:35
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds clarification and a reusable workflow to ensure Nix is installed consistently in CI and Copilot coding-agent environments, specifically documenting that flake validation is handled separately from installation.

Changes:

  • Added explanatory comments to Nix validate/build reusable workflows to clarify determinate-nix-action’s scope.
  • Introduced a new reusable workflow for Copilot agent setup that checks out the repo and installs Nix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/_nix-validate.yml Adds comments clarifying Nix installer vs. flake checking responsibilities.
.github/workflows/_nix-build.yml Adds comments clarifying Nix installer responsibilities and where validation occurs.
.github/workflows/_copilot-setup-steps.yml New reusable workflow to install Nix for Copilot coding agents.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jacob <20714140+JacobPEvans@users.noreply.github.com>
@JacobPEvans JacobPEvans merged commit 76c45f8 into main Mar 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants