Skip to content

Commit 401ab01

Browse files
authored
don't run e2e ios tests on pr's (#2857)
1 parent da5adb6 commit 401ab01

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/e2e_test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: E2E Tests
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
android:
7+
description: "Run Android e2e tests"
8+
type: boolean
9+
default: true
10+
ios:
11+
description: "Run iOS e2e tests"
12+
type: boolean
13+
default: true
514
pull_request:
615

716
permissions:
@@ -18,6 +27,8 @@ env:
1827

1928
jobs:
2029
android:
30+
# Always on pull_request; opt-out via the checkbox on workflow_dispatch.
31+
if: github.event_name != 'workflow_dispatch' || inputs.android
2132
runs-on: ubuntu-latest
2233
timeout-minutes: 40
2334
env:
@@ -80,6 +91,8 @@ jobs:
8091
sample_app/build/e2e-test.log
8192
8293
ios:
94+
# Only on workflow_dispatch, when the checkbox is ticked.
95+
if: github.event_name == 'workflow_dispatch' && inputs.ios
8396
runs-on: macos-15
8497
timeout-minutes: 40
8598
env:

0 commit comments

Comments
 (0)