You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add copilot-setup-steps workflow and shared setup composite actions for Copilot coding agent environment (#65)
Adds `.github/workflows/copilot-setup-steps.yml` so 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
- **New workflow** (`.github/workflows/copilot-setup-steps.yml`): job
named `copilot-setup-steps` (required name for Copilot pickup), runs on
`ubuntu-latest`, `contents: read` only
- **Auto-validation**: triggers on push/PR when the file itself changes,
plus `workflow_dispatch` for manual testing
- **New composite action** (`.github/actions/setup-node/action.yml`):
sets up Node.js 20, runs `npm ci` + `npm run buildProd` for all four JS
packages (`microsoft-trydotnet`, `microsoft-trydotnet-editor`,
`microsoft-trydotnet-styles`, `microsoft-learn-mock`); optional `build`
input (default `true`)
- **New composite action** (`.github/actions/setup-dotnet/action.yml`):
sets up .NET via `global.json`, configures NuGet cache, runs `dotnet
restore` + `dotnet build`; optional `build` input (default `true`)
- **Shared setup with CI**: all three main jobs in
`Build-Test-And-Deploy.yaml` (`build-and-test`,
`build-and-test-windows`, `integration-tests`) now call both composite
actions, removing ~90 lines of duplicated setup
- **Full builds for Copilot**: `copilot-setup-steps.yml` runs both
composite actions with `build: true` (default), so JS assets and .NET
binaries are compiled and ready before the agent starts
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/IntelliTect/try/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Co-authored-by: Benjamin Michaelis <github@relay.benjamin.michaelis.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments