Skip to content

Commit

Permalink
uncomment other tests to test integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Aug 28, 2023
1 parent 6e5aba2 commit ef5516a
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: flutter native & integration test
on:
# Currently broken, enable after fixing
workflow_dispatch
# workflow_dispatch
# push:
# branches:
# - main
# - release/**
# pull_request:
# paths-ignore:
# - 'file/**'
pull_request:
paths-ignore:
- 'file/**'

env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Expand Down Expand Up @@ -80,17 +80,17 @@ jobs:
working-directory: ./flutter/example/android
run: flutter build apk --debug

- name: launch android emulator & run android native test
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
with:
working-directory: ./flutter/example/android
api-level: 21
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
arch: x86_64
profile: Nexus 6
script: ./gradlew testDebugUnitTest
# - name: launch android emulator & run android native test
# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
# with:
# working-directory: ./flutter/example/android
# api-level: 21
# force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# arch: x86_64
# profile: Nexus 6
# script: ./gradlew testDebugUnitTest

# - name: launch android emulator & run android integration test
# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b #[email protected]
Expand Down Expand Up @@ -140,12 +140,11 @@ jobs:
echo "SIMULATOR_ID=${simulator_id}" >> "$GITHUB_OUTPUT"
xcrun simctl boot ${simulator_id}
- name: run ios native test
working-directory: ./flutter/example/ios
env:
SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }}
run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO

# - name: run ios integration test
# run: flutter test integration_test/integration_test.dart --verbose
# - name: run ios native test
# working-directory: ./flutter/example/ios
# env:
# SIMULATOR_ID: ${{ steps.sim.outputs.SIMULATOR_ID }}
# run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO

- name: run ios integration test
run: flutter test integration_test/integration_test.dart --verbose

0 comments on commit ef5516a

Please sign in to comment.