|
1 | 1 | name: flutter native & integration test
|
2 | 2 | on:
|
3 |
| - # Currently broken, enable after fixing |
4 |
| -# workflow_dispatch |
5 |
| - # push: |
6 |
| - # branches: |
7 |
| - # - main |
8 |
| - # - release/** |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + - release/** |
9 | 7 | pull_request:
|
10 | 8 | paths-ignore:
|
11 | 9 | - 'file/**'
|
@@ -80,29 +78,29 @@ jobs:
|
80 | 78 | working-directory: ./flutter/example/android
|
81 | 79 | run: flutter build apk --debug
|
82 | 80 |
|
83 |
| -# - name: launch android emulator & run android native test |
84 |
| -# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected] |
85 |
| -# with: |
86 |
| -# working-directory: ./flutter/example/android |
87 |
| -# api-level: 21 |
88 |
| -# force-avd-creation: false |
89 |
| -# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none |
90 |
| -# disable-animations: true |
91 |
| -# arch: x86_64 |
92 |
| -# profile: Nexus 6 |
93 |
| -# script: ./gradlew testDebugUnitTest |
94 |
| - |
95 |
| -# - name: launch android emulator & run android integration test |
96 |
| -# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected] |
97 |
| -# with: |
98 |
| -# working-directory: ./flutter/example |
99 |
| -# api-level: 21 |
100 |
| -# force-avd-creation: false |
101 |
| -# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none |
102 |
| -# disable-animations: true |
103 |
| -# arch: x86_64 |
104 |
| -# profile: Nexus 6 |
105 |
| -# script: flutter test integration_test/integration_test.dart --verbose |
| 81 | + - name: launch android emulator & run android native test |
| 82 | + uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected] |
| 83 | + with: |
| 84 | + working-directory: ./flutter/example/android |
| 85 | + api-level: 21 |
| 86 | + force-avd-creation: false |
| 87 | + emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none |
| 88 | + disable-animations: true |
| 89 | + arch: x86_64 |
| 90 | + profile: Nexus 6 |
| 91 | + script: ./gradlew testDebugUnitTest |
| 92 | + |
| 93 | + - name: launch android emulator & run android integration test |
| 94 | + uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected] |
| 95 | + with: |
| 96 | + working-directory: ./flutter/example |
| 97 | + api-level: 21 |
| 98 | + force-avd-creation: false |
| 99 | + emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none |
| 100 | + disable-animations: true |
| 101 | + arch: x86_64 |
| 102 | + profile: Nexus 6 |
| 103 | + script: flutter test integration_test/integration_test.dart --verbose |
106 | 104 |
|
107 | 105 | test-ios:
|
108 | 106 | runs-on: macos-13
|
@@ -140,11 +138,11 @@ jobs:
|
140 | 138 | echo "SIMULATOR_ID=${simulator_id}" >> "$GITHUB_OUTPUT"
|
141 | 139 | xcrun simctl boot ${simulator_id}
|
142 | 140 |
|
143 |
| -# - name: run ios native test |
144 |
| -# working-directory: ./flutter/example/ios |
145 |
| -# env: |
146 |
| -# SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }} |
147 |
| -# run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO |
| 141 | + - name: run ios native test |
| 142 | + working-directory: ./flutter/example/ios |
| 143 | + env: |
| 144 | + SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }} |
| 145 | + run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO |
148 | 146 |
|
149 | 147 | - name: run ios integration test
|
150 | 148 | run: flutter test integration_test/integration_test.dart --verbose
|
0 commit comments