From ef5516a54486fd6a1ce0ad2dbf1d6d9c71c8a4f5 Mon Sep 17 00:00:00 2001 From: Denis Andrasec Date: Mon, 28 Aug 2023 11:11:06 +0200 Subject: [PATCH] uncomment other tests to test integration test --- .github/workflows/flutter_test.yml | 45 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/flutter_test.yml b/.github/workflows/flutter_test.yml index ea29731c26..c71a7e0b34 100644 --- a/.github/workflows/flutter_test.yml +++ b/.github/workflows/flutter_test.yml @@ -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 }} @@ -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 #pin@v2.28.0 - 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 #pin@v2.28.0 +# 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 #pin@v2.28.0 @@ -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