|
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,17 +69,17 @@ jobs: |
69 | 69 | - name: Resolve Clerk instance keys |
70 | 70 | id: keys |
71 | 71 | env: |
72 | | - INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }} |
| 72 | + INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }} |
73 | 73 | run: | |
74 | | - if [ -z "$INTEGRATION_INSTANCE_KEYS" ]; then |
75 | | - echo "::error::INTEGRATION_INSTANCE_KEYS secret is not set" |
| 74 | + if [ -z "$INTEGRATION_STAGING_INSTANCE_KEYS" ]; then |
| 75 | + echo "::error::INTEGRATION_STAGING_INSTANCE_KEYS secret is not set" |
76 | 76 | exit 1 |
77 | 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" |
| 78 | + pk=$(echo "$INTEGRATION_STAGING_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].pk") || { |
| 79 | + echo "::error::No entry '$EXPO_INSTANCE_NAME' found in INTEGRATION_STAGING_INSTANCE_KEYS" |
80 | 80 | exit 1 |
81 | 81 | } |
82 | | - sk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
| 82 | + sk=$(echo "$INTEGRATION_STAGING_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
83 | 83 | echo "::add-mask::$sk" |
84 | 84 | echo "pk=$pk" >> "$GITHUB_OUTPUT" |
85 | 85 | echo "sk=$sk" >> "$GITHUB_OUTPUT" |
@@ -186,17 +186,17 @@ jobs: |
186 | 186 | - name: Resolve Clerk instance keys |
187 | 187 | id: keys |
188 | 188 | env: |
189 | | - INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }} |
| 189 | + INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }} |
190 | 190 | run: | |
191 | | - if [ -z "$INTEGRATION_INSTANCE_KEYS" ]; then |
192 | | - echo "::error::INTEGRATION_INSTANCE_KEYS secret is not set" |
| 191 | + if [ -z "$INTEGRATION_STAGING_INSTANCE_KEYS" ]; then |
| 192 | + echo "::error::INTEGRATION_STAGING_INSTANCE_KEYS secret is not set" |
193 | 193 | exit 1 |
194 | 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" |
| 195 | + pk=$(echo "$INTEGRATION_STAGING_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].pk") || { |
| 196 | + echo "::error::No entry '$EXPO_INSTANCE_NAME' found in INTEGRATION_STAGING_INSTANCE_KEYS" |
197 | 197 | exit 1 |
198 | 198 | } |
199 | | - sk=$(echo "$INTEGRATION_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
| 199 | + sk=$(echo "$INTEGRATION_STAGING_INSTANCE_KEYS" | jq -er ".[\"$EXPO_INSTANCE_NAME\"].sk") |
200 | 200 | echo "::add-mask::$sk" |
201 | 201 | echo "pk=$pk" >> "$GITHUB_OUTPUT" |
202 | 202 | echo "sk=$sk" >> "$GITHUB_OUTPUT" |
|
0 commit comments