From 230cbabd15e54dc5ae8ac8099ab1ed693e621b59 Mon Sep 17 00:00:00 2001 From: Vladislav Panin Date: Tue, 7 Jul 2026 13:41:25 +0300 Subject: [PATCH] ci: run Unity EditMode tests via game-ci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a unity-tests job to tests.yml: game-ci/unity-test-runner@v4 over the Aspid.FastTools project (EditMode, version auto-detected from ProjectVersion.txt), Library/ cached on packages-lock + ProjectVersion, results uploaded as an artifact and reported as a check. Requires the UNITY_LICENSE secret (personal .ulf) — the job fails until it is added (ASP-55). Co-Authored-By: Claude --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58670e86..2ac14133 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,3 +35,34 @@ jobs: - name: Run ${{ matrix.name }} tests run: dotnet test "${{ matrix.path }}" --nologo + + unity-tests: + name: Unity EditMode + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Library/ is regenerated from Packages + ProjectSettings; a stale restore still saves most of the reimport, + # hence the bare restore-keys fallback. + - uses: actions/cache@v4 + with: + path: Aspid.FastTools/Library + key: unity-library-${{ hashFiles('Aspid.FastTools/Packages/packages-lock.json', 'Aspid.FastTools/ProjectSettings/ProjectVersion.txt') }} + restore-keys: unity-library- + + # Requires the UNITY_LICENSE secret (personal-license .ulf contents) — see docs in the PR that added this job. + - uses: game-ci/unity-test-runner@v4 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + with: + projectPath: Aspid.FastTools + testMode: editmode + artifactsPath: unity-test-results + githubToken: ${{ secrets.GITHUB_TOKEN }} + checkName: Unity EditMode results + + - uses: actions/upload-artifact@v4 + if: always() + with: + name: unity-test-results + path: unity-test-results