Skip to content

Commit 9566e82

Browse files
committed
chore(e2e): support excluding timing-sensitive scenarios in the non-matrix e2e workflow
1 parent dba14ce commit 9566e82

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/e2e-manual.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
required: true
2323
default: false
2424
type: boolean
25+
exclude_timing_sensitive:
26+
description: Exclude timing-sensitive optional scenarios (ON_NEXT_RESUME/ON_NEXT_SUSPEND)
27+
required: false
28+
default: true
29+
type: boolean
2530

2631
jobs:
2732
e2e-ios:
@@ -85,11 +90,17 @@ jobs:
8590
env:
8691
E2E_RETRY_COUNT: "3"
8792
E2E_RETRY_DELAY_SEC: "30"
93+
E2E_EXCLUDE_TIMING_SENSITIVE: ${{ inputs.exclude_timing_sensitive }}
8894
run: |
95+
TIMING_SENSITIVE_ARG=""
96+
if [ "$E2E_EXCLUDE_TIMING_SENSITIVE" = "true" ]; then
97+
TIMING_SENSITIVE_ARG="--exclude-timing-sensitive"
98+
fi
99+
89100
if [ "${{ inputs.expo }}" = "true" ]; then
90-
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}" --framework expo --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC"
101+
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}" --framework expo --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC" $TIMING_SENSITIVE_ARG
91102
else
92-
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}" --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC"
103+
npm run e2e -- --app "${{ inputs.app }}" --platform ios --simulator "${{ steps.boot-simulator.outputs.simulator }}" --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC" $TIMING_SENSITIVE_ARG
93104
fi
94105
95106
e2e-android:
@@ -150,4 +161,4 @@ jobs:
150161
arch: x86_64
151162
profile: pixel_7
152163
emulator-boot-timeout: 900
153-
script: if [ "${{ inputs.expo }}" = "true" ]; then npm run e2e -- --app "${{ inputs.app }}" --platform android --framework expo --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC"; else npm run e2e -- --app "${{ inputs.app }}" --platform android --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC"; fi
164+
script: TIMING_SENSITIVE_ARG=$([ "${{ inputs.exclude_timing_sensitive }}" = "true" ] && echo "--exclude-timing-sensitive" || echo ""); if [ "${{ inputs.expo }}" = "true" ]; then npm run e2e -- --app "${{ inputs.app }}" --platform android --framework expo --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC" $TIMING_SENSITIVE_ARG; else npm run e2e -- --app "${{ inputs.app }}" --platform android --retry-count "$E2E_RETRY_COUNT" --retry-delay-sec "$E2E_RETRY_DELAY_SEC" $TIMING_SENSITIVE_ARG; fi

0 commit comments

Comments
 (0)