Skip to content

Commit

Permalink
Update test-integration.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed May 27, 2024
1 parent 9e5a027 commit a4c739c
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/test-integration.yaml
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

0 comments on commit a4c739c

Please sign in to comment.