Skip to content

Commit 605ee4e

Browse files
committed
ci(e2e): use INTEGRATION_STAGING_INSTANCE_KEYS for mobile-e2e workflow
1 parent 9ccec6d commit 605ee4e

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/mobile-e2e.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# and runs Maestro flows on iOS simulator and Android emulator.
44
#
55
# Secrets:
6-
# INTEGRATION_INSTANCE_KEYS — JSON map of named test instances
6+
# INTEGRATION_STAGING_INSTANCE_KEYS — JSON map of named staging test instances
77
# ({ "<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).
1010
#
1111
# Test users are provisioned per-run via Clerk Backend API and deleted at
1212
# teardown — same pattern as /integration's createBapiUser.
@@ -69,17 +69,17 @@ jobs:
6969
- name: Resolve Clerk instance keys
7070
id: keys
7171
env:
72-
INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }}
72+
INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }}
7373
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"
7676
exit 1
7777
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"
8080
exit 1
8181
}
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")
8383
echo "::add-mask::$sk"
8484
echo "pk=$pk" >> "$GITHUB_OUTPUT"
8585
echo "sk=$sk" >> "$GITHUB_OUTPUT"
@@ -186,17 +186,17 @@ jobs:
186186
- name: Resolve Clerk instance keys
187187
id: keys
188188
env:
189-
INTEGRATION_INSTANCE_KEYS: ${{ secrets.INTEGRATION_INSTANCE_KEYS }}
189+
INTEGRATION_STAGING_INSTANCE_KEYS: ${{ secrets.INTEGRATION_STAGING_INSTANCE_KEYS }}
190190
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"
193193
exit 1
194194
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"
197197
exit 1
198198
}
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")
200200
echo "::add-mask::$sk"
201201
echo "pk=$pk" >> "$GITHUB_OUTPUT"
202202
echo "sk=$sk" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)