Add copilot-setup-steps workflow and shared setup composite actions for Copilot coding agent environment#65
Conversation
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
|
@copilot Is there a reason we don't do build's and similar as well so that those are ready to go as well and dependencies are all installed? Also would it be worth doing something similar to like what is done here: https://github.com/IntelliTect/EssentialCSharp/blob/v13.0/.github/actions/setup-dotnet/action.yml |
…t-setup-steps Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Done in af03b79. Added build steps to
All three jobs in |
There was a problem hiding this comment.
Pull request overview
This PR introduces a GitHub Copilot setup workflow and refactors CI build configuration to use reusable composite actions, significantly reducing duplication and improving maintainability.
Changes:
- Added
.github/workflows/copilot-setup-steps.ymlworkflow that prepares a complete build environment for GitHub Copilot's coding agent - Created two composite actions (
.github/actions/setup-node/and.github/actions/setup-dotnet/) to encapsulate Node.js and .NET environment setup - Refactored three CI jobs in
Build-Test-And-Deploy.yamlto use the new composite actions, eliminating ~90 lines of duplicated setup code
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/copilot-setup-steps.yml | New workflow that runs full Node.js and .NET builds to prepare environment for Copilot coding agent |
| .github/actions/setup-node/action.yml | Composite action that sets up Node.js 20, installs dependencies, and optionally builds all four JS packages |
| .github/actions/setup-dotnet/action.yml | Composite action that sets up .NET SDK, configures NuGet caching, restores dependencies, and optionally builds |
| .github/workflows/Build-Test-And-Deploy.yaml | Updated to use new composite actions instead of duplicated setup steps across three jobs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Adds
.github/workflows/copilot-setup-steps.ymlso GitHub Copilot's coding agent gets a fully prepared, pre-built environment before it starts working. Also introduces shared composite actions to eliminate setup duplication across CI jobs.Changes
.github/workflows/copilot-setup-steps.yml): job namedcopilot-setup-steps(required name for Copilot pickup), runs onubuntu-latest,contents: readonlyworkflow_dispatchfor manual testing.github/actions/setup-node/action.yml): sets up Node.js 20, runsnpm ci+npm run buildProdfor all four JS packages (microsoft-trydotnet,microsoft-trydotnet-editor,microsoft-trydotnet-styles,microsoft-learn-mock); optionalbuildinput (defaulttrue).github/actions/setup-dotnet/action.yml): sets up .NET viaglobal.json, configures NuGet cache, runsdotnet restore+dotnet build; optionalbuildinput (defaulttrue)Build-Test-And-Deploy.yaml(build-and-test,build-and-test-windows,integration-tests) now call both composite actions, removing ~90 lines of duplicated setupcopilot-setup-steps.ymlruns both composite actions withbuild: true(default), so JS assets and .NET binaries are compiled and ready before the agent starts✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.