From 389786b1bf2b9444662afac51a13b5719d15fecd Mon Sep 17 00:00:00 2001 From: Nic van Dessel <51134175+nvandessel@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:28:41 -0800 Subject: [PATCH] feat: add scoped registry to manifest --- dist/platforms/ubuntu/run_tests.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dist/platforms/ubuntu/run_tests.sh b/dist/platforms/ubuntu/run_tests.sh index f72c2ee..9d54142 100755 --- a/dist/platforms/ubuntu/run_tests.sh +++ b/dist/platforms/ubuntu/run_tests.sh @@ -96,11 +96,16 @@ if [ "$PACKAGE_MODE" = "true" ]; then PACKAGE_MANIFEST_JSON=$(cat "$PACKAGE_MANIFEST_PATH") echo "$PACKAGE_MANIFEST_JSON" | \ - jq \ - --arg packageName "$PACKAGE_NAME" \ - --arg projectPath "$UNITY_PROJECT_PATH" \ - '.dependencies += {"com.unity.testtools.codecoverage": "1.1.1"} | .dependencies += {"\($packageName)": "file:\($projectPath)"} | . += {testables: ["\($packageName)"]}' \ - > "$PACKAGE_MANIFEST_PATH" + jq \ + --arg packageName "$PACKAGE_NAME" \ + --arg projectPath "$UNITY_PROJECT_PATH" \ + --arg scopedRegistryUrl "$SCOPED_REGISTRY_URL" \ + --arg registryScopes "$REGISTRY_SCOPES" \ + '.dependencies += {"com.unity.testtools.codecoverage": "1.1.1"} | + .dependencies += {"\($packageName)": "file:\($projectPath)"} | + . += {testables: ["\($packageName)"]} | + . += {scopedRegistries: [{"name":"dependency", "url":"\($scopedRegistryUrl)", scopes: ["\($registryScopes)"]}] }' \ + > "$PACKAGE_MANIFEST_PATH" UNITY_PROJECT_PATH="$TEMP_PROJECT_PATH" fi