Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] enable integration test for ci #21

Closed
wants to merge 2 commits into from
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
110 changes: 55 additions & 55 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,58 +34,58 @@ jobs:
- name: unit test
run: flutter test
# never finish on CI, but run fine on local
# build_android:
# needs: analysis
# strategy:
# matrix:
# api-level: [29, 30, 31, 32, 33]
# runs-on: macos-latest
# defaults:
# run:
# working-directory: ./app_widget/example
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# cache: true
# cache-key: ${{ runner.os }}-flutter-install-cache
# cache-path: ${{ runner.tool_cache }}/flutter
# - run: flutter pub get
# - name: AVD cache
# uses: actions/cache@v3
# 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@v2
# with:
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# profile: Nexus 6
# target: playstore
# 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."
# - uses: actions/setup-java@v2
# with:
# distribution: 'adopt'
# java-version: '11'
# cache: 'gradle'
# - name: Integration Test
# uses: reactivecircus/android-emulator-runner@v2
# with:
# target: playstore
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# profile: Nexus 6
# force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# working-directory: ./app_widget/example
# script: flutter test integration_test/android_test.dart && sleep 2 && flutter test integration_test/android_test_2.dart
build_android:
needs: analysis
strategy:
matrix:
api-level: [33] # [29, 30, 31, 32, 33]
runs-on: macos-latest
defaults:
run:
working-directory: ./app_widget/example
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: ${{ runner.os }}-flutter-install-cache
cache-path: ${{ runner.tool_cache }}/flutter
- run: flutter pub get
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
cache: 'gradle'
# - name: AVD cache
# uses: actions/cache@v3
# 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@v2
# with:
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# profile: Nexus 6
# target: playstore
# 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: Integration Test
uses: reactivecircus/android-emulator-runner@v2
with:
target: playstore
api-level: ${{ matrix.api-level }}
arch: x86_64
profile: Nexus 6
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
working-directory: ./app_widget/example
script: flutter test integration_test/android_test.dart && sleep 2 && flutter test integration_test/android_test_2.dart
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![platform-interface](https://github.com/noxasch/flutter_app_widget/actions/workflows/interface.yaml/badge.svg)](https://github.com/noxasch/flutter_app_widget/actions/workflows/interface.yaml)
[![android](https://github.com/noxasch/flutter_app_widget/actions/workflows/android.yaml/badge.svg)](https://github.com/noxasch/flutter_app_widget/actions/workflows/android.yaml)
[![build](https://github.com/noxasch/flutter_app_widget/actions/workflows/main.yaml/badge.svg)](https://github.com/noxasch/flutter_app_widget/actions/workflows/main.yaml)

# Flutter App Widget
App Widget / Home Screen widget plugin for flutter app

Expand Down
Loading