updated flutter-drive.yml

This commit is contained in:
Lorenzo Pichilli 2021-02-11 10:50:27 +01:00
parent 1aaac32c8e
commit 275688dfb9
2 changed files with 51 additions and 1 deletions

View File

@ -52,4 +52,54 @@ jobs:
- name: "Run iOS Flutter Integration Test" - name: "Run iOS Flutter Integration Test"
run: | run: |
flutter pub get flutter pub get
flutter devices
./scripts/test.sh $(ipconfig getifaddr en0)
# id of job, a string that is unique to the "jobs" node above.
android_integration_test_drive:
# Creates a build matrix for your jobs. You can define different
# variations of an environment to run each job in.
strategy:
# A set of different configurations of the virtual
# environment.
# matrix:
# When set to true, GitHub cancels all in-progress jobs if any
# matrix job fails.
fail-fast: false
# The type of machine to run the job on.
runs-on: macOS-latest
# Contains a sequence of tasks.
steps:
# The branch or tag ref that triggered the workflow will be
# checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v2
# Sets up android emulator
- name: "Android Emulator Runner"
uses: ReactiveCircus/android-emulator-runner@v2.14.3
with:
api-level: 30
target: google_apis
avd-name: Flutter-Android
# Sets up a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1.4.0
with:
channel: 'dev' # 'stable' or 'dev' or 'beta'
- name: "Change Flutter channel to master"
run: |
flutter channel master
flutter upgrade
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: "Install npm dependencies"
run: |
cd ./nodejs_server_test_auth_basic_and_ssl
npm install
cd ..
- name: "Run iOS Flutter Integration Test"
run: |
flutter pub get
flutter devices
./scripts/test.sh $(ipconfig getifaddr en0) ./scripts/test.sh $(ipconfig getifaddr en0)

View File

@ -1625,6 +1625,7 @@ void main() {
initialOptions: InAppWebViewGroupOptions( initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions( crossPlatform: InAppWebViewOptions(
clearCache: true, clearCache: true,
javaScriptCanOpenWindowsAutomatically: true,
) )
), ),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {
@ -1657,7 +1658,6 @@ void main() {
initialOptions: InAppWebViewGroupOptions( initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions( crossPlatform: InAppWebViewOptions(
clearCache: true, clearCache: true,
javaScriptCanOpenWindowsAutomatically: true,
) )
), ),
onWebViewCreated: (controller) { onWebViewCreated: (controller) {