Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/workflows/unity-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Unity Tests

on:
pull_request:
branches:
- main
paths:
- "GGJ26/**"
- ".github/workflows/unity-tests.yml"
workflow_dispatch:

permissions:
contents: read
checks: write

jobs:
unity-tests:
name: Unity Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force

- name: Checkout
uses: actions/checkout@v4
with:
lfs: true

- name: Cache Library
uses: actions/cache@v4
with:
path: GGJ26/Library
key: Library-${{ hashFiles('GGJ26/Assets/**', 'GGJ26/Packages/manifest.json', 'GGJ26/ProjectSettings/**') }}
restore-keys: |
Library-

- name: Run EditMode tests
id: editmode
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
Comment on lines +42 to +46
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow uses secrets on pull_request. For PRs coming from forks, GitHub does not expose repository secrets, so these jobs will fail consistently. Consider adding a conditional (e.g., only run when github.event.pull_request.head.repo.fork == false), or switch to a safe alternative strategy (like requiring maintainers to run via workflow_dispatch, or using pull_request_target with strict hardening).

Copilot uses AI. Check for mistakes.
with:
projectPath: GGJ26
testMode: EditMode
unityVersion: auto
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: EditMode Test Results

- name: Upload EditMode artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: unity-editmode-results
path: ${{ steps.editmode.outputs.artifactsPath }}
if-no-files-found: warn
retention-days: 7

- name: Run PlayMode tests
id: playmode
if: always()
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: GGJ26
testMode: PlayMode
unityVersion: auto
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: PlayMode Test Results

- name: Upload PlayMode artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: unity-playmode-results
path: ${{ steps.playmode.outputs.artifactsPath }}
if-no-files-found: warn
retention-days: 7
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@
# Antigravity
.agent/
.gemini/
scripts/
scripts/

# Claude code
.claude/
CLAUDE.md
.omc/

# Codex
.codex/
104 changes: 0 additions & 104 deletions GGJ26/.claude/CLAUDE.md

This file was deleted.

42 changes: 0 additions & 42 deletions GGJ26/.claude/commands/update-docs.md

This file was deleted.

74 changes: 0 additions & 74 deletions GGJ26/.claude/rules/architecture.md

This file was deleted.

29 changes: 0 additions & 29 deletions GGJ26/.claude/rules/unity-gotchas.md

This file was deleted.

Loading