mirror of
https://github.com/Heretek-AI/godot-opencode.git
synced 2026-11-10 10:21:30 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
164e47b6f8 | ||
|
|
d510e51d41 | ||
|
|
4c48da64ba | ||
|
|
181fca9dd7 |
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user