|
2 | 2 | name: Android - Build and test
|
3 | 3 | on:
|
4 | 4 | pull_request:
|
| 5 | + types: [opened, synchronize, reopened, ready_for_review] |
5 | 6 | paths:
|
6 | 7 | - '**'
|
7 | 8 | - '!.github/workflows/**'
|
|
49 | 50 | jobs:
|
50 | 51 | prepare:
|
51 | 52 | name: Prepare
|
| 53 | + if: github.event.pull_request.draft == false |
52 | 54 | runs-on: ubuntu-latest
|
53 | 55 | steps:
|
54 | 56 | - name: Checkout repository
|
|
68 | 70 |
|
69 | 71 | generate-debug-keystore:
|
70 | 72 | name: Generate debug keystore
|
| 73 | + if: github.event.pull_request.draft == false |
71 | 74 | needs: prepare
|
72 | 75 | runs-on: ubuntu-latest
|
73 | 76 | steps:
|
|
93 | 96 |
|
94 | 97 | generate-relay-list:
|
95 | 98 | name: Generate relay list
|
| 99 | + if: github.event.pull_request.draft == false |
96 | 100 | needs: prepare
|
97 | 101 | runs-on: ubuntu-latest
|
98 | 102 | container:
|
@@ -137,6 +141,7 @@ jobs:
|
137 | 141 |
|
138 | 142 | build-native:
|
139 | 143 | name: Build native
|
| 144 | + if: github.event.pull_request.draft == false |
140 | 145 | needs: prepare
|
141 | 146 | runs-on: ubuntu-latest
|
142 | 147 | container:
|
@@ -209,6 +214,7 @@ jobs:
|
209 | 214 |
|
210 | 215 | run-lint-and-tests:
|
211 | 216 | name: Run lint and test tasks
|
| 217 | + if: github.event.pull_request.draft == false |
212 | 218 | needs: [prepare]
|
213 | 219 | runs-on: ubuntu-latest
|
214 | 220 | container:
|
@@ -248,6 +254,7 @@ jobs:
|
248 | 254 |
|
249 | 255 | build-app:
|
250 | 256 | name: Build app
|
| 257 | + if: github.event.pull_request.draft == false |
251 | 258 | needs: [prepare, generate-debug-keystore]
|
252 | 259 | runs-on: ubuntu-latest
|
253 | 260 | container:
|
@@ -340,6 +347,7 @@ jobs:
|
340 | 347 |
|
341 | 348 | build-instrumented-tests:
|
342 | 349 | name: Build instrumented test packages
|
| 350 | + if: github.event.pull_request.draft == false |
343 | 351 | needs: [prepare, generate-debug-keystore]
|
344 | 352 | runs-on: ubuntu-latest
|
345 | 353 | container:
|
@@ -393,6 +401,7 @@ jobs:
|
393 | 401 |
|
394 | 402 | instrumented-tests:
|
395 | 403 | name: Run instrumented tests
|
| 404 | + if: github.event.pull_request.draft == false |
396 | 405 | runs-on: [self-hosted, android-device]
|
397 | 406 | timeout-minutes: 30
|
398 | 407 | needs: [build-app, build-instrumented-tests]
|
@@ -457,6 +466,7 @@ jobs:
|
457 | 466 |
|
458 | 467 | instrumented-e2e-tests:
|
459 | 468 | name: Run instrumented e2e tests
|
| 469 | + if: github.event.pull_request.draft == false |
460 | 470 | runs-on: [self-hosted, android-device]
|
461 | 471 | if: github.event_name == 'schedule' || github.event.inputs.run_e2e_tests == 'true'
|
462 | 472 | timeout-minutes: 30
|
|
0 commit comments