run tests only when instructed
OmarHatem committed
Jul 17, 2025 at 06:24 UTC
c5bf8d13639350410c040067a05da28a899aac5e
1 file changed
+5
-5
.github/workflows/pr_test_build_linux.yml
+5
-5
@@ -246,7 +246,7 @@ jobs:
246
name: cakewallet_linux
247
248
- name: Prepare virtual desktop
249
- if: ${{ !contains(env.message, 'skip tests') }}
249
+ if: ${{ contains(env.message, 'run tests') }}
250
run: |
251
nohup Xvfb :99 -screen 0 720x1280x16 &
252
echo DISPLAY=:99 | sudo tee -a $GITHUB_ENV
@@ -262,28 +262,28 @@ jobs:
262
# isn't much in those wallets anyway, we still wouldn't like to leak it to anyone who is able to access github.
263
264
- name: Test [confirm_seeds_flow_test]
265
- if: ${{ !contains(env.message, 'skip tests') }}
265
+ if: ${{ contains(env.message, 'run tests') }}
266
timeout-minutes: 20
267
run: |
268
xmessage -timeout 30 "confirm_seeds_flow_test" &
269
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
270
exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/confirm_seeds_flow_test.dart
271
- name: Test [create_wallet_flow_test]
272
- if: ${{ !contains(env.message, 'skip tests') }}
272
+ if: ${{ contains(env.message, 'run tests') }}
273
timeout-minutes: 20
274
run: |
275
xmessage -timeout 30 "create_wallet_flow_test" &
276
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
277
exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/create_wallet_flow_test.dart
278
# - name: Test [exchange_flow_test]
279
- # if: ${{ !contains(env.message, 'skip tests') }}
279
+ # if: ${{ contains(env.message, 'run tests') }}
280
# timeout-minutes: 20
281
# run: |
282
# xmessage -timeout 30 "exchange_flow_test" &
283
# rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
284
# exec timeout --signal=SIGKILL 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/exchange_flow_test.dart
285
- name: Test [restore_wallet_through_seeds_flow_test]
286
- if: ${{ !contains(env.message, 'skip tests') }}
286
+ if: ${{ contains(env.message, 'run tests') }}
287
timeout-minutes: 20
288
run: |
289
xmessage -timeout 30 "restore_wallet_through_seeds_flow_test" &