diff --git a/.gitea/workflows/package-hosts-verify.yml b/.gitea/workflows/package-hosts-verify.yml new file mode 100644 index 0000000..e07db3d --- /dev/null +++ b/.gitea/workflows/package-hosts-verify.yml @@ -0,0 +1,74 @@ +name: Verify ShrinkSDK Package Hosts + +on: + workflow_dispatch: + +jobs: + editmode: + runs-on: unity-2022.3.62f3 + container: + image: docker.1panel.live/unityci/editor:ubuntu-2022.3.62f3-windows-mono-3 + volumes: + - /www/dk_project/bt-recovery/gitea/runner/seedskey-unity-license:/root/.local/share/unity3d/Unity + - /www/dk_project/bt-recovery/gitea/runner/seedskey-unity-entitlements:/root/.config/unity3d/Unity/licenses + permissions: + contents: read + env: + UNITY_VERSION: 2022.3.62f3 + steps: + - name: Fetch exact Workspace revision and submodules + shell: bash + run: | + set -euo pipefail + ref="${{ gitea.sha }}" + git init . + git remote add origin "https://git.crash.work/ShrinkSDK/Workspace.git" + git fetch --depth=1 origin "$ref" + git checkout --detach FETCH_HEAD + git submodule sync --recursive + git submodule update --init --recursive + test "$(git submodule status --recursive | wc -l | tr -d ' ')" = "21" + test -z "$(git submodule status --recursive | grep '^-')" + + - name: Run every standalone package EditMode host + shell: bash + run: | + set -euo pipefail + machine_id_file="/root/.local/share/unity3d/Unity/.machine-id" + if test -s "$machine_id_file"; then + cat "$machine_id_file" > /etc/machine-id + echo "Unity machine identity restored" + fi + unity_bin="$(command -v unity-editor || command -v unity || command -v Unity || true)" + test -n "$unity_bin" + "$unity_bin" -version | head -n 1 | grep -F "$UNITY_VERSION" + + failed=0 + for host in Assets/Modules/*/Development~/UnityProject; do + package_root="$(dirname "$(dirname "$host")")" + package_name="$(basename "$package_root")" + results_dir="$host/TestResults" + results_file="$results_dir/editmode.xml" + log_file="$results_dir/unity.log" + mkdir -p "$results_dir" + echo "::group::${package_name} EditMode" + status=0 + "$unity_bin" \ + -batchmode \ + -nographics \ + -quit \ + -projectPath "$host" \ + -runTests \ + -testPlatform EditMode \ + -testResults "$results_file" \ + -logFile "$log_file" || status=$? + if test "$status" -ne 0 || ! test -s "$results_file" || ! grep -q 'result="Passed"' "$results_file"; then + failed=1 + echo "${package_name} EditMode verification failed" >&2 + tail -n 220 "$log_file" || true + else + echo "${package_name} EditMode verification passed" + fi + echo "::endgroup::" + done + exit "$failed" diff --git a/Assets/Modules/ShrinkApp.Core b/Assets/Modules/ShrinkApp.Core index 8955a15..7d65b6a 160000 --- a/Assets/Modules/ShrinkApp.Core +++ b/Assets/Modules/ShrinkApp.Core @@ -1 +1 @@ -Subproject commit 8955a159db9b4c15e656b018f0eff055d9a729a2 +Subproject commit 7d65b6aa0e7e882839a0334ee8590495568fb50b diff --git a/Assets/Modules/ShrinkApp.Starter.Basic b/Assets/Modules/ShrinkApp.Starter.Basic index e136f01..312dd98 160000 --- a/Assets/Modules/ShrinkApp.Starter.Basic +++ b/Assets/Modules/ShrinkApp.Starter.Basic @@ -1 +1 @@ -Subproject commit e136f01e8135ac1eeb75336bff2877bd831f3a72 +Subproject commit 312dd9894331f168ee0111d4ad3adb76fe3bf855 diff --git a/Assets/Modules/ShrinkCommand b/Assets/Modules/ShrinkCommand index c2cf934..a3a76e8 160000 --- a/Assets/Modules/ShrinkCommand +++ b/Assets/Modules/ShrinkCommand @@ -1 +1 @@ -Subproject commit c2cf934830afbf043c9355585b70f1b8be6ff038 +Subproject commit a3a76e805f417ffe91724f1c7b4788af7fd28266 diff --git a/Assets/Modules/ShrinkCommand.Integration.App b/Assets/Modules/ShrinkCommand.Integration.App index a064a7c..9bb5702 160000 --- a/Assets/Modules/ShrinkCommand.Integration.App +++ b/Assets/Modules/ShrinkCommand.Integration.App @@ -1 +1 @@ -Subproject commit a064a7c2515ec9f29745d26581344c2ae3d5d6fb +Subproject commit 9bb57025dc1ca2446107023b82c256edde09ab3b diff --git a/Assets/Modules/ShrinkCommand.Integration.EventBus b/Assets/Modules/ShrinkCommand.Integration.EventBus index c369cc1..63f23f3 160000 --- a/Assets/Modules/ShrinkCommand.Integration.EventBus +++ b/Assets/Modules/ShrinkCommand.Integration.EventBus @@ -1 +1 @@ -Subproject commit c369cc18a3389777428cf5d32c3daabd54430c18 +Subproject commit 63f23f397e258494f7e2899cd32185f71de4bffd diff --git a/Assets/Modules/ShrinkCommand.Integration.Network b/Assets/Modules/ShrinkCommand.Integration.Network index 4d8d640..e7f2d73 160000 --- a/Assets/Modules/ShrinkCommand.Integration.Network +++ b/Assets/Modules/ShrinkCommand.Integration.Network @@ -1 +1 @@ -Subproject commit 4d8d6402fdbddfc1171948cc889dabfe42bbc00f +Subproject commit e7f2d735885c16513710266387ac4ef255284afc diff --git a/Assets/Modules/ShrinkContext.AppAdapter b/Assets/Modules/ShrinkContext.AppAdapter index e8d3a62..d53b1b7 160000 --- a/Assets/Modules/ShrinkContext.AppAdapter +++ b/Assets/Modules/ShrinkContext.AppAdapter @@ -1 +1 @@ -Subproject commit e8d3a6203148f2751723b6a30bfecbf041b9afd7 +Subproject commit d53b1b7997181dee207ef071954fa6dad8d568d7 diff --git a/Assets/Modules/ShrinkContext.Core b/Assets/Modules/ShrinkContext.Core index 95b82aa..709e9c1 160000 --- a/Assets/Modules/ShrinkContext.Core +++ b/Assets/Modules/ShrinkContext.Core @@ -1 +1 @@ -Subproject commit 95b82aaac936d71c8cd74535de63103da2d92181 +Subproject commit 709e9c18a41395b1ab7077e90437e22da5990f3b diff --git a/Assets/Modules/ShrinkContext.EventBusAdapter b/Assets/Modules/ShrinkContext.EventBusAdapter index 153cc57..5426e21 160000 --- a/Assets/Modules/ShrinkContext.EventBusAdapter +++ b/Assets/Modules/ShrinkContext.EventBusAdapter @@ -1 +1 @@ -Subproject commit 153cc57e8dadd4342a9ce0379aadae83b2fd2fe2 +Subproject commit 5426e21c214d70a34a5fa1c46239b513470bc80a diff --git a/Assets/Modules/ShrinkDataSaver b/Assets/Modules/ShrinkDataSaver index c39314a..65a1553 160000 --- a/Assets/Modules/ShrinkDataSaver +++ b/Assets/Modules/ShrinkDataSaver @@ -1 +1 @@ -Subproject commit c39314acbc83ff512ac1ac4b2db06f37d8db5bd2 +Subproject commit 65a155361256be255268099fa1d8aa188dea7162 diff --git a/Assets/Modules/ShrinkDataSaver.Integration.App b/Assets/Modules/ShrinkDataSaver.Integration.App index 19654e8..c8cf6e8 160000 --- a/Assets/Modules/ShrinkDataSaver.Integration.App +++ b/Assets/Modules/ShrinkDataSaver.Integration.App @@ -1 +1 @@ -Subproject commit 19654e868a43a9a36555b04784a52f248601f177 +Subproject commit c8cf6e8713a87a03dd164e179ade6425aae89779 diff --git a/Assets/Modules/ShrinkDataSaver.Integration.EventBus b/Assets/Modules/ShrinkDataSaver.Integration.EventBus index 11ca5c5..fa7897f 160000 --- a/Assets/Modules/ShrinkDataSaver.Integration.EventBus +++ b/Assets/Modules/ShrinkDataSaver.Integration.EventBus @@ -1 +1 @@ -Subproject commit 11ca5c53d49e35ea67ef93b72e1fdc30a888bcf1 +Subproject commit fa7897f827a4bfd4b422b0a1dcde5e1bc0f74d96 diff --git a/Assets/Modules/ShrinkEventBus b/Assets/Modules/ShrinkEventBus index 58f21a0..ba84865 160000 --- a/Assets/Modules/ShrinkEventBus +++ b/Assets/Modules/ShrinkEventBus @@ -1 +1 @@ -Subproject commit 58f21a02c2f9a37f29c6817955ca4c304fca487a +Subproject commit ba84865d7ae700ef775dcafb1d410c8c349ad7a5 diff --git a/Assets/Modules/ShrinkEventBus.Entities b/Assets/Modules/ShrinkEventBus.Entities index 3274067..905c827 160000 --- a/Assets/Modules/ShrinkEventBus.Entities +++ b/Assets/Modules/ShrinkEventBus.Entities @@ -1 +1 @@ -Subproject commit 3274067ca26b679976afce7b69836a2e034f8f56 +Subproject commit 905c827552b0413e808b122a7cee648d39d5c2ed diff --git a/Assets/Modules/ShrinkInstaller b/Assets/Modules/ShrinkInstaller index 6fa2ad2..afc58da 160000 --- a/Assets/Modules/ShrinkInstaller +++ b/Assets/Modules/ShrinkInstaller @@ -1 +1 @@ -Subproject commit 6fa2ad26237cdf4bd35b070bd3ca8fe7220d8983 +Subproject commit afc58da57948fac163127d12d6e82b0b327f00a1 diff --git a/Assets/Modules/ShrinkModFramework b/Assets/Modules/ShrinkModFramework index e793a0a..a5a7f33 160000 --- a/Assets/Modules/ShrinkModFramework +++ b/Assets/Modules/ShrinkModFramework @@ -1 +1 @@ -Subproject commit e793a0a74230cd1ff4e4d655d872bdb93345212a +Subproject commit a5a7f3329fe1c38b628e06fcdd12cf1a5c2c5278 diff --git a/Assets/Modules/ShrinkNetwork b/Assets/Modules/ShrinkNetwork index e9ce97d..6709e9d 160000 --- a/Assets/Modules/ShrinkNetwork +++ b/Assets/Modules/ShrinkNetwork @@ -1 +1 @@ -Subproject commit e9ce97df85c67e118a1765f68c6fe3dbb5130467 +Subproject commit 6709e9dea3a8bcd5d9046f5b0c1ee932ebbe4ad4 diff --git a/Assets/Modules/ShrinkNetwork.Integration.App b/Assets/Modules/ShrinkNetwork.Integration.App index 054baa4..0df62be 160000 --- a/Assets/Modules/ShrinkNetwork.Integration.App +++ b/Assets/Modules/ShrinkNetwork.Integration.App @@ -1 +1 @@ -Subproject commit 054baa471b7233defaeeae94e4a32af8e9d78c82 +Subproject commit 0df62beb1c5332fd9ed33ba438b2f6166a274ac8 diff --git a/Assets/Modules/ShrinkNetwork.Integration.EventBus b/Assets/Modules/ShrinkNetwork.Integration.EventBus index 9e8a68c..91e0f5e 160000 --- a/Assets/Modules/ShrinkNetwork.Integration.EventBus +++ b/Assets/Modules/ShrinkNetwork.Integration.EventBus @@ -1 +1 @@ -Subproject commit 9e8a68c47cf06c3a03969cb6b092e4f21017966e +Subproject commit 91e0f5e6791568780fde201a6dde3f3dcc2268ef diff --git a/Assets/Modules/ShrinkShared.CodeGen b/Assets/Modules/ShrinkShared.CodeGen index b680738..ec48264 160000 --- a/Assets/Modules/ShrinkShared.CodeGen +++ b/Assets/Modules/ShrinkShared.CodeGen @@ -1 +1 @@ -Subproject commit b6807389e6b6da1bafa68fd8d1f70a8537fab6cd +Subproject commit ec482647043df00962e21773b4baf3f778a64896 diff --git a/Assets/Modules/ShrinkTutorial b/Assets/Modules/ShrinkTutorial index 61b7c4d..e279c42 160000 --- a/Assets/Modules/ShrinkTutorial +++ b/Assets/Modules/ShrinkTutorial @@ -1 +1 @@ -Subproject commit 61b7c4da738ff34cc6d5f460c03c9cf396906d15 +Subproject commit e279c4230ec4a4d6f098285a53913dcf09e59db6 diff --git a/Tools/RepositoryMigration/Initialize-ShrinkSdkPackageRepositories.ps1 b/Tools/RepositoryMigration/Initialize-ShrinkSdkPackageRepositories.ps1 index db3e064..d0102ee 100644 --- a/Tools/RepositoryMigration/Initialize-ShrinkSdkPackageRepositories.ps1 +++ b/Tools/RepositoryMigration/Initialize-ShrinkSdkPackageRepositories.ps1 @@ -273,6 +273,7 @@ jobs: 'com.cysharp.unitask' = 'https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b' $PackageName = 'file:../../..' } + testables = @($PackageName) } $developmentRoot = Join-Path $PackageRoot 'Development~/UnityProject' Write-Utf8File -Path (Join-Path $developmentRoot 'Packages/manifest.json') -Content (($manifest | ConvertTo-Json -Depth 12) + [Environment]::NewLine)