Skip to content

Commit

Permalink
[skip slack] [run tests] Xvfb fix, timeout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jan 11, 2025
1 parent 4fd7cf0 commit 915d606
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .github/workflows/pr_test_build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,53 +219,47 @@ jobs:
pushd build/linux/x64/release
zip -r cakewallet_linux.zip bundle
popd
- name: Prepare virtual desktop
run: |
nohup Xvfb :99 -screen 0 1920x1080x16 &
echo DISPLAY=:99 | sudo tee -a $GITHUB_ENV
- name: Upload Artifact to github
uses: kittaakos/upload-artifact-as-is@v0
with:
path: ${{ github.workspace }}/build/linux/x64/release/cakewallet_linux.zip
- name: Test [confirm_seeds_flow_test]
if: ${{ contains(github.event.head_commit.message, 'run tests') }}
timeout-minutes: 15
timeout-minutes: 20
continue-on-error: true
run: |
Xvfb :99 -screen 0 1920x1080x16 &
export DISPLAY=:99
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/confirm_seeds_flow_test.dart
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
timeout 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/confirm_seeds_flow_test.dart
- name: Test [create_wallet_flow_test]
if: ${{ contains(github.event.head_commit.message, 'run tests') }}
timeout-minutes: 15
timeout-minutes: 20
continue-on-error: true
run: |
Xvfb :99 -screen 0 1920x1080x16 &
export DISPLAY=:99
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/create_wallet_flow_test.dart
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
timeout 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/create_wallet_flow_test.dart
- name: Test [exchange_flow_test]
if: ${{ contains(github.event.head_commit.message, 'run tests') }}
timeout-minutes: 15
timeout-minutes: 20
continue-on-error: true
run: |
Xvfb :99 -screen 0 1920x1080x16 &
export DISPLAY=:99
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/exchange_flow_test.dart
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
timeout 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/exchange_flow_test.dart
- name: Test [restore_wallet_through_seeds_flow_test]
if: ${{ contains(github.event.head_commit.message, 'run tests') }}
timeout-minutes: 15
timeout-minutes: 20
continue-on-error: true
run: |
Xvfb :99 -screen 0 1920x1080x16 &
export DISPLAY=:99
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/restore_wallet_through_seeds_flow_test.dart
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
timeout 900 flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/restore_wallet_through_seeds_flow_test.dart
- name: Test [transaction_history_flow_test]
if: ${{ contains(github.event.head_commit.message, 'run tests') }}
timeout-minutes: 15
timeout-minutes: 20
continue-on-error: true
run: |
Xvfb :99 -screen 0 1920x1080x16 &
export DISPLAY=:99
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/
rm -rf ~/.local/share/com.example.cake_wallet/ ~/Documents/cake_wallet/ ~/cake_wallet
flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test_suites/transaction_history_flow_test.dart

0 comments on commit 915d606

Please sign in to comment.