Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 0 additions & 111 deletions .github/workflows/all_plugins.yaml

This file was deleted.

194 changes: 24 additions & 170 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,34 @@ on:

jobs:
android:
runs-on: macos-11
timeout-minutes: 45
runs-on: macos-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
# - name: DNSControl preview
# uses: koenrh/dnscontrol-action@v3
# with:
# args: preview
# config_file: 'dns/dnsconfig.js'
# creds_file: 'dns/creds.json'
# - name: DNSControl push
# uses: koenrh/dnscontrol-action@v3
# with:
# args: push
# config_file: 'dns/dnsconfig.js'
# creds_file: 'dns/creds.json'
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: "16"
- uses: actions/setup-java@v2
- name: Configure JDK 1.11
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
distribution: 'temurin'
java-version: '11'
- uses: actions/cache@v2
name: Gradle Cache
with:
Expand All @@ -60,7 +76,7 @@ jobs:
arch: x86
profile: Galaxy Nexus
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: -no-snapshot -nojni -memory 2048 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -timezone 'Europe/London' -cores 2
disable-animations: false
channel: canary
script: echo "Generated AVD snapshot for caching"
Expand All @@ -70,8 +86,6 @@ jobs:
path: ~/.cache/firebase/emulators
key: firebase-emulators-v2-${{ github.run_id }}
restore-keys: firebase-emulators-v2
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
Expand All @@ -85,7 +99,7 @@ jobs:
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "E2E Tests"
uses: reactivecircus/android-emulator-runner@v2
timeout-minutes: 30
timeout-minutes: 40
with:
api-level: 30
arch: x86
Expand All @@ -97,7 +111,7 @@ jobs:
working-directory: tests
script: |
sleep 15
$ANDROID_HOME/platform-tools/adb logcat '*:D' > adb-log.txt &
$ANDROID_HOME/platform-tools/adb logcat '*:E' > adb-log.txt &
flutter drive --target=./test_driver/driver_e2e.dart --dart-define=CI=true

- name: Compress Emulator Log
Expand All @@ -111,163 +125,3 @@ jobs:
with:
name: ${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-${{matrix.first-boot-delay}}-${{matrix.iteration}}-adb_logs
path: tests/adb-log.txt.gz


ios:
runs-on: macos-12
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: "16"
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- uses: hendrikmuhs/ccache-action@v1
name: Xcode Compile Cache
with:
key: ${{ runner.os }}-ios-v3
max-size: 700M
- uses: actions/cache@v2
name: Pods Cache
id: pods-cache
with:
path: tests/ios/Pods
key: ${{ runner.os }}-pods-v3-${{ hashFiles('tests/ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-ios-pods-v2
- name: Firebase Emulator Cache
uses: actions/cache@v2
with:
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
sudo npm i -g firebase-tools
- name: "Build Application"
working-directory: tests
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
export CCACHE_FILECLONE=true
export CCACHE_DEPEND=true
export CCACHE_INODECACHE=true
ccache -s
flutter build ios --no-codesign --simulator --debug --target=./test_driver/driver_e2e.dart --dart-define=CI=true
ccache -s
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "E2E Tests"
working-directory: tests
run: |
# Boot simulator and wait for System app to be ready.
SIMULATOR="iPhone 11"
xcrun simctl bootstatus "$SIMULATOR" -b
xcrun simctl logverbose "$SIMULATOR" enable
# Sleep to allow simulator to settle.
sleep 15
# Uncomment following line to have simulator logs printed out for debugging purposes.
# xcrun simctl spawn booted log stream --predicate 'eventMessage contains "flutter"' &
flutter drive -d "$SIMULATOR" --target=./test_driver/driver_e2e.dart --dart-define=CI=true
FLUTTER_DRIVE_EXIT_CODE=$?
xcrun simctl shutdown "$SIMULATOR"
exit $FLUTTER_DRIVE_EXIT_CODE
- name: "Swift Format Check"
if: ${{ success() || failure() }}
run: |
swiftformat .
./.github/workflows/scripts/validate-formatting.sh

macos:
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: "16"
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- uses: hendrikmuhs/ccache-action@v1
name: Xcode Compile Cache
with:
key: ${{ runner.os }}-macos-v2
max-size: 700M
- uses: actions/cache@v2
name: Pods Cache
id: pods-cache
with:
path: tests/macos/Pods
key: ${{ runner.os }}-pods-v2-${{ hashFiles('tests/macos/Podfile.lock') }}
restore-keys: ${{ runner.os }}-macos-pods-v1
- name: Cache Firebase Emulator
uses: actions/cache@v2
with:
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
sudo npm i -g firebase-tools
- name: "Build Application"
working-directory: tests
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
export CCACHE_FILECLONE=true
export CCACHE_DEPEND=true
export CCACHE_INODECACHE=true
ccache -s
flutter build macos --debug --target=./test_driver/driver_e2e.dart --device-id=macos --dart-define=CI=true
ccache -s
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "E2E Tests"
working-directory: tests
run: |
flutter drive -d macos --target=./test_driver/driver_e2e.dart --dart-define=CI=true

web:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: "16"
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: "11"
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
sudo npm i -g firebase-tools
- name: Cache Firebase Emulator
uses: actions/cache@v2
with:
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: "E2E Tests"
working-directory: tests
run: |
chromedriver --port=4444 &
flutter drive --verbose-system-logs --device-id=web-server --target=./test_driver/driver_e2e.dart --dart-define=CI=true
Loading