-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,50 @@ | ||
name: Flutter integration test | ||
name: Flutter Integration Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
drive_android: | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
api-level: [29] | ||
api-level: [21, 30, 34] # [minSdk, most used, newest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
- name: Delete unnecessary tools 🔧 | ||
uses: jlumbroso/[email protected] | ||
with: | ||
android: false # Don't remove Android tools | ||
tool-cache: true # Remove image tool cache - rm -rf "$AGENT_TOOLSDIRECTORY" | ||
dotnet: true # rm -rf /usr/share/dotnet | ||
haskell: true # rm -rf /opt/ghc... | ||
swap-storage: true # rm -f /mnt/swapfile (4GiB) | ||
docker-images: false # Takes 16s, enable if needed in the future | ||
large-packages: false # includes google-cloud-sdk and it's slow | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
|
||
with: | ||
distribution: 'zulu' | ||
java-version: '17.0.7' | ||
java-version: 17 | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.0' | ||
channel: 'stable' | ||
|
||
# Run integration test | ||
- name: Run Flutter Driver tests | ||
- name: Run Integration Tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
script: flutter test integration_test --flavor netknights | ||
|
||
disable-animations: true | ||
disk-size: 6000M | ||
heap-size: 600M | ||
script: flutter test integration_test --flavor netknights |