From 142dd77e4983812b70004e813f4826e1200cd5cc Mon Sep 17 00:00:00 2001 From: link1345 Date: Sat, 22 Aug 2026 01:39:54 +0900 Subject: [PATCH] =?UTF-8?q?Gua=E3=81=A8CI=E4=BE=9D=E5=AD=98=E9=96=A2?= =?UTF-8?q?=E4=BF=82=E3=82=92v1.18.0=E3=81=B8=E6=9B=B4=E6=96=B0=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gua-tests.yml | 8 ++++---- Packages/com.link1345.gua/package.json | 2 +- README-ja.md | 10 +++++----- README.md | 10 +++++----- tests/GuaUiLab.Unity.Tests.csproj | 10 +++++----- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/gua-tests.yml b/.github/workflows/gua-tests.yml index d997730..d48e883 100644 --- a/.github/workflows/gua-tests.yml +++ b/.github/workflows/gua-tests.yml @@ -20,14 +20,14 @@ jobs: if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository permissions: contents: read - uses: link1345/gua-tester/.github/workflows/unity.yml@v2.1 + uses: link1345/gua-tester/.github/workflows/unity.yml@v2.2 with: project-path: . scene-path: Assets/Scenes/Main.unity test-project: tests/GuaUiLab.Unity.Tests.csproj artifact-key: unity-sample unity-version: auto - gua-tag: gua-v0.15.0 + gua-tag: gua-v1.18.0 artifact-path: artifacts/gua secrets: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} @@ -150,7 +150,7 @@ jobs: - name: Upload pull-request visual report if: github.event_name == 'pull_request' && steps.visual-outcome.outputs.value == 'failure' - uses: link1345/gua-tester/visual-report@v2.1 + uses: link1345/gua-tester/visual-report@v2.2 with: artifact-path: downloaded test-outcome: ${{ steps.visual-outcome.outputs.value }} @@ -161,7 +161,7 @@ jobs: - name: Prepare latest main visual report id: pages-report if: always() && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch') - uses: link1345/gua-tester/visual-report@v2.1 + uses: link1345/gua-tester/visual-report@v2.2 with: artifact-path: downloaded test-outcome: ${{ steps.visual-outcome.outputs.value }} diff --git a/Packages/com.link1345.gua/package.json b/Packages/com.link1345.gua/package.json index 6044a7a..6a3182b 100644 --- a/Packages/com.link1345.gua/package.json +++ b/Packages/com.link1345.gua/package.json @@ -1,6 +1,6 @@ { "name": "com.link1345.gua", - "version": "0.15.0", + "version": "1.18.0", "displayName": "Gua Runtime UI Automation", "description": "Managed Unity adapter for the Gua runtime UI automation protocol.", "unity": "6000.0", diff --git a/README-ja.md b/README-ja.md index d119c97..f28f3cf 100644 --- a/README-ja.md +++ b/README-ja.md @@ -9,7 +9,7 @@ ウィンドウはリサイズ可能です。541×857のデザイン比率を維持して一様に拡大・縮小し、画面比率から余る領域は黒いレターボックスとして表示します。 -UI自動化にはGua v0.15.0のUnity UPMパッケージを使用しています。実行中は既定で `ws://127.0.0.1:8765` にGua bridgeを開き、標準uGUIツリーを自動的に公開します。ポートは環境変数 `GUA_BRIDGE_PORT` で変更できます。 +UI自動化にはGua v1.18.0のUnity UPMパッケージを使用しています。実行中は既定で `ws://127.0.0.1:8765` にGua bridgeを開き、標準uGUIツリーを自動的に公開します。ポートは環境変数 `GUA_BRIDGE_PORT` で変更できます。 ## 実行 @@ -17,7 +17,7 @@ UI自動化にはGua v0.15.0のUnity UPMパッケージを使用しています 2. Unity `6000.5.3f1`で `Assets/Scenes/Main.unity` を開きます。 3. Playを押します。 -Guaの管理DLLとWindows x64ネイティブDLLを含む公式UPMパッケージ v0.15.0は `Packages/com.link1345.gua` に固定しています。そのため、隣接するGuaソースリポジトリへの参照や別途のパッケージダウンロードは不要です。 +Guaの管理DLLとWindows x64ネイティブDLLを含む公式UPMパッケージ v1.18.0は `Packages/com.link1345.gua` に固定しています。そのため、隣接するGuaソースリポジトリへの参照や別途のパッケージダウンロードは不要です。 ## UIテスト @@ -55,13 +55,13 @@ Remove-Item Env:GUA_VISUAL_REPORT_DEMO ## GitHub Actions -`.github/workflows/gua-tests.yml`で[`link1345/gua-tester`](https://github.com/link1345/gua-tester) v2.1を使用し、`main`へのpushとpull requestでUnity 6のWindows x64 Mono PlayerをビルドしてUIテストを実行します。Unity Playerのビルドにはrepository secretsの`UNITY_EMAIL`、`UNITY_PASSWORD`と、Personal用の`UNITY_LICENSE`またはProfessional用の`UNITY_SERIAL`が必要です。 +`.github/workflows/gua-tests.yml`で[`link1345/gua-tester`](https://github.com/link1345/gua-tester) v2.2を使用し、`main`へのpushとpull requestでUnity 6のWindows x64 Mono PlayerをビルドしてUIテストを実行します。Unity Playerのビルドにはrepository secretsの`UNITY_EMAIL`、`UNITY_PASSWORD`と、Personal用の`UNITY_LICENSE`またはProfessional用の`UNITY_SERIAL`が必要です。 forkからのpull requestではUnity credentialsを渡さず、Unity jobをスキップします。`pull_request_target`は使用しません。 ### Visual差分Viewer -pull requestでVisual比較が失敗すると、`visual-report@v2.1`が`comparison.json`とPNGを静的Viewerへ変換し、`gua-visual-report`というActions artifactとして保存します。通常のUnity build log、Player、TRX、Gua診断・Visual成果物も`gua-tester` v2.1のworkflow artifactとして保存されます。 +pull requestでVisual比較が失敗すると、`visual-report@v2.2`が`comparison.json`とPNGを静的Viewerへ変換し、`gua-visual-report`というActions artifactとして保存します。通常のUnity build log、Player、TRX、Gua診断・Visual成果物も`gua-tester` v2.2のworkflow artifactとして保存されます。 `main`へのpushと手動実行では、最新結果をGitHub Pages artifactとしてアップロードし、専用jobからPagesへdeployします。repositoryのPages sourceを事前に **GitHub Actions** へ設定してください。 @@ -82,4 +82,4 @@ pull requestでVisual比較が失敗すると、`visual-report@v2.1`が`comparis | `cancel_exit` | button | 終了確認 | | `confirm_exit` | button | 終了確認 | -Gua v0.15.0が最初に対応するUnity構成に合わせ、Windows x64・Monoを対象にしています。IL2CPPとWindows以外のPlayerはこのサンプルの検証対象外です。 +Gua v1.18.0で検証するUnity構成に合わせ、Windows x64・Monoを対象にしています。IL2CPPとWindows以外のPlayerはこのサンプルの検証対象外です。 diff --git a/README.md b/README.md index b81b536..37bb539 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a Unity sample project for [Gua](https://github.com/link1345/gua). It re The window is resizable. The UI scales uniformly while preserving its 541×857 design aspect ratio, and any space outside that ratio is rendered as black letterboxing. -UI automation uses the Gua v0.15.0 Unity UPM package. At runtime, it opens a Gua bridge at `ws://127.0.0.1:8765` by default and automatically exposes the standard uGUI tree. Set the `GUA_BRIDGE_PORT` environment variable to use a different port. +UI automation uses the Gua v1.18.0 Unity UPM package. At runtime, it opens a Gua bridge at `ws://127.0.0.1:8765` by default and automatically exposes the standard uGUI tree. Set the `GUA_BRIDGE_PORT` environment variable to use a different port. ## Run the sample @@ -16,7 +16,7 @@ UI automation uses the Gua v0.15.0 Unity UPM package. At runtime, it opens a Gua 2. Open `Assets/Scenes/Main.unity` with Unity `6000.5.3f1`. 3. Enter Play Mode. -The official UPM package v0.15.0, including the managed assemblies and Windows x64 native libraries, is pinned in `Packages/com.link1345.gua`. No adjacent Gua source repository or separate package download is required. +The official UPM package v1.18.0, including the managed assemblies and Windows x64 native libraries, is pinned in `Packages/com.link1345.gua`. No adjacent Gua source repository or separate package download is required. ## UI tests @@ -54,13 +54,13 @@ Remove-Item Env:GUA_VISUAL_REPORT_DEMO ## GitHub Actions -`.github/workflows/gua-tests.yml` uses [`link1345/gua-tester`](https://github.com/link1345/gua-tester) v2.1 to build a Unity 6 Windows x64 Mono Player and run UI tests on pushes to `main` and on pull requests. Building the Unity Player requires the repository secrets `UNITY_EMAIL`, `UNITY_PASSWORD`, and either `UNITY_LICENSE` for a Personal license or `UNITY_SERIAL` for a Professional license. +`.github/workflows/gua-tests.yml` uses [`link1345/gua-tester`](https://github.com/link1345/gua-tester) v2.2 to build a Unity 6 Windows x64 Mono Player and run UI tests on pushes to `main` and on pull requests. Building the Unity Player requires the repository secrets `UNITY_EMAIL`, `UNITY_PASSWORD`, and either `UNITY_LICENSE` for a Personal license or `UNITY_SERIAL` for a Professional license. Pull requests from forks do not receive Unity credentials, so the Unity job is skipped. The workflow does not use `pull_request_target`. ### Visual difference viewer -When a visual comparison fails in a pull request, `visual-report@v2.1` turns `comparison.json` and its PNGs into a static viewer and stores it as the `gua-visual-report` Actions artifact. The normal Unity build log, Player, TRX file, and Gua diagnostic and visual artifacts are also stored in the `gua-tester` v2.1 workflow artifact. +When a visual comparison fails in a pull request, `visual-report@v2.2` turns `comparison.json` and its PNGs into a static viewer and stores it as the `gua-visual-report` Actions artifact. The normal Unity build log, Player, TRX file, and Gua diagnostic and visual artifacts are also stored in the `gua-tester` v2.2 workflow artifact. On pushes to `main` and manual runs, the latest report is uploaded as a GitHub Pages artifact and deployed by a dedicated job. Configure the repository's Pages source as **GitHub Actions** first. @@ -81,4 +81,4 @@ Enable `visual-report-demo` in a manual run to reuse the Unity Player from the n | `cancel_exit` | button | Exit confirmation | | `confirm_exit` | button | Exit confirmation | -This sample targets Windows x64 and Mono, matching the initial Unity support in Gua v0.15.0. IL2CPP and non-Windows Players are outside the sample's validated scope. +This sample targets Windows x64 and Mono, matching the validated Unity configuration in Gua v1.18.0. IL2CPP and non-Windows Players are outside the sample's validated scope. diff --git a/tests/GuaUiLab.Unity.Tests.csproj b/tests/GuaUiLab.Unity.Tests.csproj index 2a4571a..1bfc0e0 100644 --- a/tests/GuaUiLab.Unity.Tests.csproj +++ b/tests/GuaUiLab.Unity.Tests.csproj @@ -8,11 +8,11 @@ - - - - - + + + + +