|
3 | 3 | # and runs Maestro flows on iOS simulator and Android emulator. |
4 | 4 | # |
5 | 5 | # Secrets: |
6 | | -# INTEGRATION_INSTANCE_KEYS — JSON map of named test instances |
| 6 | +# INTEGRATION_STAGING_INSTANCE_KEYS — JSON map of named staging test instances |
7 | 7 | # ({ "<name>": { "pk": "pk_test_...", "sk": "sk_test_..." } }). |
8 | | -# Same secret used by /integration (Playwright). We read the entry named |
9 | | -# EXPO_INSTANCE_NAME (set in env: below). |
| 8 | +# Same secret used by /integration (Playwright) staging jobs. We read the |
| 9 | +# entry named EXPO_INSTANCE_NAME (set in env: below). |
10 | 10 | # |
11 | 11 | # Test users are provisioned per-run via Clerk Backend API and deleted at |
12 | 12 | # teardown — same pattern as /integration's createBapiUser. |
|
69 | 69 | - name: Resolve Clerk instance keys |
70 | 70 | id: keys |
71 | 71 | env: |
72 | | - INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }} |
73 | | - run: | |
74 | | - if [ -z "$INTEGRATION_INSTANCE_KEYS" ]; then |
75 | | - echo "::error::INTEGRATION_INSTANCE_KEYS secret is not set" |
76 | | - exit 1 |
77 | | - fi |
78 | | - pk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].pk") || { |
79 | | - echo "::error::No entry '$EXPO_INSTANCE_NAME' found in INTEGRATION_INSTANCE_KEYS" |
80 | | - exit 1 |
81 | | - } |
82 | | - sk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
83 | | - echo "::add-mask::$sk" |
84 | | - echo "pk=$pk" >> "$GITHUB_OUTPUT" |
85 | | - echo "sk=$sk" >> "$GITHUB_OUTPUT" |
| 72 | + INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }} |
| 73 | + run: node scripts/resolve-instance-keys.mjs INTEGRATION_STAGING_INSTANCE_KEYS "$EXPO_INSTANCE_NAME" |
86 | 74 |
|
87 | 75 | - name: Write quickstart .env |
88 | 76 | working-directory: clerk-expo-quickstart/NativeComponentQuickstart |
@@ -186,20 +174,8 @@ jobs: |
186 | 174 | - name: Resolve Clerk instance keys |
187 | 175 | id: keys |
188 | 176 | env: |
189 | | - INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }} |
190 | | - run: | |
191 | | - if [ -z "$INTEGRATION_INSTANCE_KEYS" ]; then |
192 | | - echo "::error::INTEGRATION_INSTANCE_KEYS secret is not set" |
193 | | - exit 1 |
194 | | - fi |
195 | | - pk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].pk") || { |
196 | | - echo "::error::No entry '$EXPO_INSTANCE_NAME' found in INTEGRATION_INSTANCE_KEYS" |
197 | | - exit 1 |
198 | | - } |
199 | | - sk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
200 | | - echo "::add-mask::$sk" |
201 | | - echo "pk=$pk" >> "$GITHUB_OUTPUT" |
202 | | - echo "sk=$sk" >> "$GITHUB_OUTPUT" |
| 177 | + INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }} |
| 178 | + run: node scripts/resolve-instance-keys.mjs INTEGRATION_STAGING_INSTANCE_KEYS "$EXPO_INSTANCE_NAME" |
203 | 179 |
|
204 | 180 | - name: Write quickstart .env |
205 | 181 | working-directory: clerk-expo-quickstart/NativeComponentQuickstart |
|
0 commit comments