|
1 | 1 | name: flutter native & integration test
|
2 | 2 | on:
|
3 | 3 | # Currently broken, enable after fixing
|
4 |
| - workflow_dispatch |
| 4 | +# workflow_dispatch |
5 | 5 | # push:
|
6 | 6 | # branches:
|
7 | 7 | # - main
|
8 | 8 | # - release/**
|
9 |
| - # pull_request: |
10 |
| - # paths-ignore: |
11 |
| - # - 'file/**' |
| 9 | + pull_request: |
| 10 | + paths-ignore: |
| 11 | + - 'file/**' |
12 | 12 |
|
13 | 13 | env:
|
14 | 14 | SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
@@ -80,17 +80,17 @@ jobs:
|
80 | 80 | working-directory: ./flutter/example/android
|
81 | 81 | run: flutter build apk --debug
|
82 | 82 |
|
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 |
| 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 | 94 |
|
95 | 95 | # - name: launch android emulator & run android integration test
|
96 | 96 | # uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
|
@@ -140,12 +140,11 @@ jobs:
|
140 | 140 | echo "SIMULATOR_ID=${simulator_id}" >> "$GITHUB_OUTPUT"
|
141 | 141 | xcrun simctl boot ${simulator_id}
|
142 | 142 |
|
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 |
148 |
| - |
149 |
| -# - name: run ios integration test |
150 |
| -# run: flutter test integration_test/integration_test.dart --verbose |
| 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 |
151 | 148 |
|
| 149 | + - name: run ios integration test |
| 150 | + run: flutter test integration_test/integration_test.dart --verbose |
0 commit comments