Skip to content

ci: add Agent Sanity Check workflow and local verification scripts#426

Open
kirre-bylund wants to merge 3 commits intocopilot-devfrom
feat/ca-compile
Open

ci: add Agent Sanity Check workflow and local verification scripts#426
kirre-bylund wants to merge 3 commits intocopilot-devfrom
feat/ca-compile

Conversation

@kirre-bylund
Copy link
Contributor

  • Add .github/workflows/agent-sanity-check.yml: lightweight compilation check triggered on every push to work branches (feat/, fix/, etc.)
  • Add .github/scripts/verify-compilation.ps1 (Windows PowerShell) and .github/scripts/verify-compilation.sh (Linux/macOS bash): run Unity in batch mode to verify the SDK compiles, with automatic fallback to a temporary project if no custom test project is configured
  • Add .github/instructions/verification.md: documents both local and cloud verification paths for human developers and coding agents
  • Update .github/copilot-instructions.md and guardrails.md to reference verification.md so agents know to run verification before opening PRs
  • Update .gitignore to exclude unity-dev-settings.json and Temp~/

Closes #1161

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 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 .gitignore for 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.

- 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
@kirre-bylund
Copy link
Contributor Author

@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)

Copy link
Contributor

Copilot AI commented Mar 3, 2026

@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.

Copilot AI and others added 2 commits March 3, 2026 11:19
Co-authored-by: kirre-bylund <4068377+kirre-bylund@users.noreply.github.com>
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.

3 participants