onHtmlDataLoaded Callback Function Added #2681
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches-ignore: | |
- release/beta | |
- release/master | |
permissions: | |
contents: read | |
jobs: | |
unit_test: | |
name: Unit test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/dependency-review-action@c74b580d73376b7750d3d2a50bfb8adc2c937507 # v3.1.5 | |
if: github.base_ref | |
- name: Setup Flutter | |
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0 | |
with: | |
cache: true | |
- run: dart format --set-exit-if-changed --output none . | |
- run: ./tool/test.sh --coverage | |
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 | |
if: failure() | |
with: | |
name: failures | |
path: '**/failures/' | |
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
integration_test_android: | |
strategy: | |
matrix: | |
include: | |
- api-level: 30 | |
arch: x86 | |
channel: canary | |
target: aosp_atd | |
name: Integration test (Android) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0 | |
with: | |
cache: true | |
- name: Gradle cache | |
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2 # v2.11.1 | |
with: | |
# only update gradle cache from demo_app.yml jobs | |
cache-read-only: false | |
- name: AVD cache | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-${{ matrix.api-level }} | |
- name: Create AVD and generate snapshot for caching | |
if: steps.avd-cache.outputs.cache-hit != 'true' | |
uses: reactivecircus/android-emulator-runner@99a4aac18b4df9b3af66c4a1f04c1f23fa10c270 # v2.29.0 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ matrix.arch }} | |
channel: ${{ matrix.channel }} | |
target: ${{ matrix.target }} | |
force-avd-creation: false | |
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: false | |
script: echo "Generated AVD snapshot for caching." | |
- name: Run tests on Android emulator | |
uses: reactivecircus/android-emulator-runner@99a4aac18b4df9b3af66c4a1f04c1f23fa10c270 # v2.29.0 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ matrix.arch }} | |
channel: ${{ matrix.channel }} | |
target: ${{ matrix.target }} | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./tool/integration.sh | |
integration_test_ios: | |
name: Integration test (iOS) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0 | |
with: | |
cache: true | |
- name: Create iOS simulator | |
run: | | |
set -e | |
_runtime=$(xcrun simctl list runtimes ios -j | jq -r '.runtimes[-1]') | |
_runtimeId=$(echo $_runtime | jq -r .identifier) | |
echo "_runtimeId=$_runtimeId" | |
_deviceType=$(echo $_runtime | jq -r '.supportedDeviceTypes[-1]') | |
_deviceTypeName=$(echo $_deviceType | jq -r .name) | |
echo "_deviceTypeName=$_deviceTypeName" | |
_deviceTypeId=$(echo $_deviceType | jq -r .identifier) | |
echo "_deviceTypeId=$_deviceTypeId" | |
xcrun simctl create "$_deviceTypeName" "$_deviceTypeId" "$_runtimeId" | xargs xcrun simctl boot | |
- name: Run tests on iOS simulator | |
run: ./tool/integration.sh |