Commit 7fe61d5
Fix Copilot setup workflow tool ordering (#1032)
## Summary
- move Copilot environment setup steps ahead of restore/build/test so
Node.js, Docker Buildx, and dotnet-ef are available before validation
runs
- keep Node 24 aligned with the frontend engine requirement before
`dotnet build` triggers `npm ci`
- make the dotnet-ef installation step idempotent and explicitly run
under bash
## Why
The failing Copilot agent run showed the setup workflow running `dotnet
build` before `actions/setup-node`, and the Copilot setup docs state
that if a setup step fails, the remaining setup steps are skipped.
Because the web project runs `npm ci` during build and requires Node
>=22, the agent could reach its task with Node setup skipped.
## Validation
- `dotnet restore /p:AccessToNugetFeed=false`
- `dotnet build --configuration Release --no-restore
/p:AccessToNugetFeed=false`
- `dotnet test --no-build --configuration Release` *(still has the
pre-existing failures in `CaptchaService_Verify_Success` and
`KnownBreachedPassword_IsDetected`)*
- `python` YAML parse of `.github/workflows/copilot-setup-steps.yml`
- `dotnet build
/home/runner/work/EssentialCSharp.Web/EssentialCSharp.Web/EssentialCSharp.Web/EssentialCSharp.Web.csproj
--configuration Release --no-restore /p:AccessToNugetFeed=false` after
removing `EssentialCSharp.Web/node_modules`
- `parallel_validation` (Code Review + CodeQL security scan)
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>1 parent f56a684 commit 7fe61d5
1 file changed
Lines changed: 18 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
43 | 61 | | |
44 | 62 | | |
45 | 63 | | |
| |||
48 | 66 | | |
49 | 67 | | |
50 | 68 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| |||
0 commit comments