@@ -43,50 +43,50 @@ jobs:
4343 run : |
4444 flutter analyze .
4545
46- # integration-test-android:
47- # needs: [code-analysis]
48- # name: 'Integration Test :: Ubuntu :: Android (API ${{ matrix.api-level }})'
49- # runs-on: ubuntu-latest
50- # strategy:
51- # matrix:
52- # api-level: [31, 35]
53- # steps:
54- # - uses: actions/checkout@v6
55- # - uses: actions/setup-java@v5
56- # with:
57- # distribution: 'zulu'
58- # java-version: '21'
59- # - uses: flutter-actions/setup-flutter@v4
60- # with:
61- # channel: stable
62- # version: ${{ env.FLUTTER_VERSION }}
63- # - name: Prepare dependencies
64- # run: |
65- # flutter --version
66- # flutter pub get
67- # - name: Enable KVM
68- # run: |
69- # echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
70- # sudo udevadm control --reload-rules
71- # sudo udevadm trigger --name-match=kvm
72- # - name: Run Integration Test
73- # uses: reactivecircus/android-emulator-runner@v2
74- # with:
75- # api-level: ${{ matrix.api-level }}
76- # target: 'default'
77- # arch: 'x86_64'
78- # emulator-port: 5554
79- # avd-name: 'avd-test'
80- # profile: 'pixel_7'
81- # emulator-boot-timeout: 1800
82- # emulator-options: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
83- # script: |
84- # flutter devices
85- # adb devices -l
86- # flutter test integration_test/app_test.dart --dart-define=test_mode=true -d emulator-5554 -r github
46+ integration-test-android :
47+ needs : [code-analysis]
48+ name : ' Integration Test :: Ubuntu :: Android (API ${{ matrix.api-level }})'
49+ runs-on : ubuntu-latest
50+ strategy :
51+ matrix :
52+ api-level : [31, 35]
53+ steps :
54+ - uses : actions/checkout@v6
55+ - uses : actions/setup-java@v5
56+ with :
57+ distribution : ' zulu'
58+ java-version : ' 21'
59+ - uses : flutter-actions/setup-flutter@v4
60+ with :
61+ channel : stable
62+ version : ${{ env.FLUTTER_VERSION }}
63+ - name : Prepare dependencies
64+ run : |
65+ flutter --version
66+ flutter pub get
67+ - name : Enable KVM
68+ run : |
69+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
70+ sudo udevadm control --reload-rules
71+ sudo udevadm trigger --name-match=kvm
72+ - name : Run Integration Test
73+ uses : reactivecircus/android-emulator-runner@v2
74+ with :
75+ api-level : ${{ matrix.api-level }}
76+ target : ' default'
77+ arch : ' x86_64'
78+ emulator-port : 5554
79+ avd-name : ' avd-test'
80+ profile : ' pixel_7'
81+ emulator-boot-timeout : 1800
82+ emulator-options : ' -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
83+ script : |
84+ flutter devices
85+ adb devices -l
86+ flutter test integration_test/app_test.dart --dart-define=test_mode=true -d emulator-5554 -r github
8787
8888 test-build :
89- needs : [code-analysis]
89+ needs : [code-analysis, integration-test-android ]
9090 strategy :
9191 matrix :
9292 include :
0 commit comments