4 Commits
Author SHA1 Message Date
BillyOutlast 164e47b6f8 ci(ocr): point review job at org reusable workflow (pinned)
Fix 'failed to fetch workflow' parse error: ocr.yml referenced a local reusable workflow path (./.github/workflows/ocr-review.yml) that does not exist in this repo. Point at Heretek-AI/.github org reusable workflow pinned to main HEAD (a440b485).
2026-10-19 16:34:10 -04:00
BillyOutlast d510e51d41 ci: add reusable OpenCodeReview PR workflow 2026-10-19 15:49:48 -04:00
BillyOutlast 4c48da64ba Merge pull request #13 from Heretek-AI/ci/test-gate
Add CI test gate. Human-authorized. Refs #7.
2026-10-12 10:37:55 -04:00
John Smith 181fca9dd7 ci(test): gate on check, unit tests and engine GDScript parse (Refs #7) 2026-10-12 10:36:59 -04:00
2 changed files with 87 additions and 0 deletions

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
name: Test gate
# Every push to main and every PR: lint/typecheck, unit + harness tests, and
# the engine GDScript parse gate. The parse gate downloads a pinned Godot
# binary (same major line the release was live-verified on); without it the
# mock-only suite cannot catch GDScript parse errors (see #10).
# Binary install failures must fail this workflow loudly — never skip silent.
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GODOT_VERSION: 4.7.2-stable
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Lint + typecheck
run: bun run check
- name: Unit + harness tests (explicit paths; never bare sweeps of review/)
run: bun test ./packages/plugin/test/ ./companion/tests/
- name: Install Godot engine
run: |
curl -sSL -o /tmp/godot.zip "https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}/Godot_v${GODOT_VERSION}_linux.x86_64.zip"
unzip -q /tmp/godot.zip -d /tmp/godot-bin
echo "/tmp/godot-bin" >> "$GITHUB_PATH"
- name: Engine GDScript parse gate (all 13 .gd files)
run: GODOT_BIN="Godot_v${GODOT_VERSION}_linux.x86_64" scripts/check-gdscript.sh
+41
View File
@@ -0,0 +1,41 @@
name: OpenCodeReview
concurrency:
group: >-
${{
(
github.event_name == 'pull_request_target'
|| (
github.event_name == 'issue_comment'
&& github.event.issue.pull_request
&& github.event.comment.user.type != 'Bot'
&& (
github.event.comment.author_association == 'MEMBER'
|| github.event.comment.author_association == 'OWNER'
|| github.event.comment.author_association == 'COLLABORATOR'
)
&& (
startsWith(github.event.comment.body, '/open-code-review')
|| startsWith(github.event.comment.body, '@open-code-review')
)
)
)
&& format('ocr-{0}', github.event.pull_request.number || github.event.issue.number)
|| format('noop-{0}', github.run_id)
}}
cancel-in-progress: true
on:
pull_request_target:
types: [opened, synchronize, reopened]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
review:
uses: Heretek-AI/.github/.github/workflows/ocr-review.yml@a440b485d779b9177b1602c4d4f7f58cff0483a2 # main
secrets: inherit