ci: add Agent Sanity Check workflow and local verification scripts#426
ci: add Agent Sanity Check workflow and local verification scripts#426kirre-bylund wants to merge 3 commits intocopilot-devfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a lightweight “sanity” verification path for the Unity SDK (CI workflow + local scripts) so contributors/agents can quickly confirm the package compiles before opening PRs, and documents the expected verification procedure.
Changes:
- Added an “Agent Sanity Check” GitHub Actions workflow that builds a minimal Unity project referencing the SDK.
- Added local verification scripts for bash and PowerShell to run Unity batch-mode compilation checks (with temp-project fallback).
- Added verification documentation and linked it from agent instruction/guardrail docs; updated
.gitignorefor local settings/temp output.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
.gitignore |
Ignores machine-specific Unity settings JSON and temp verification project folder. |
.github/workflows/agent-sanity-check.yml |
New push/dispatch workflow to validate the SDK in a minimal Unity project. |
.github/scripts/verify-compilation.sh |
New bash script to run Unity batch mode compilation locally (temp project fallback). |
.github/scripts/verify-compilation.ps1 |
New PowerShell script to run Unity batch mode compilation locally (temp project fallback). |
.github/instructions/verification.md |
New documentation describing cloud + local verification steps. |
.github/instructions/guardrails.md |
Links guardrails to the new verification procedure. |
.github/copilot-instructions.md |
Links agent instructions to the new verification procedure. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e7afd30 to
19542c4
Compare
- Add .github/workflows/compile-check.yml: runs Unity compilation check via game-ci/unity-test-runner on every push to work branches (feat/**, fix/**, docs/**, refactor/**, chore/**, test/**, scout/**, ci/**) - Post-process Unity log to extract CS compiler errors and surface them as GitHub Actions annotations (inline on PR diff) and a compact job summary table (file, line, error code + message) - Add .github/scripts/verify-compilation.ps1 (Windows) and .github/scripts/verify-compilation.sh (Linux/macOS) for local verification - Add .github/instructions/verification.md documenting both cloud and local verification workflows, including where to find errors in CI output - Update .gitignore to exclude unity-dev-settings.json and Temp~/ - Update .github/copilot-instructions.md and .github/instructions/guardrails.md to reference the Compile Check workflow
5f07e2a to
e5c56b7
Compare
|
@copilot code review[agent] I requested your review too early as the branch was not done. Can you re-review now (and remember to resolve previous comments that are no longer applicable) |
|
@kirre-bylund I've opened a new pull request, #427, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: kirre-bylund <4068377+kirre-bylund@users.noreply.github.com>
Closes #1161