0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-04 02:11:44 -05:00

chore(mobile): remove integration test temporarily (#2008)

This commit is contained in:
Alex 2023-03-16 22:15:12 -05:00 committed by GitHub
parent 6c8b29f326
commit 0d436db3ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,8 @@ jobs:
- name: Setup Flutter SDK - name: Setup Flutter SDK
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
channel: 'stable' channel: "stable"
flutter-version: '3.7.3' flutter-version: "3.7.3"
- name: Run tests - name: Run tests
working-directory: ./mobile working-directory: ./mobile
run: flutter test run: flutter test
@ -124,77 +124,77 @@ jobs:
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}" echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
exit 1 exit 1
mobile-integration-tests: # mobile-integration-tests:
name: Run mobile end-to-end integration tests # name: Run mobile end-to-end integration tests
runs-on: macos-latest # runs-on: macos-latest
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- uses: actions/setup-java@v3 # - uses: actions/setup-java@v3
with: # with:
distribution: 'zulu' # distribution: 'zulu'
java-version: '12.x' # java-version: '12.x'
cache: 'gradle' # cache: 'gradle'
- name: Cache android SDK # - name: Cache android SDK
uses: actions/cache@v3 # uses: actions/cache@v3
id: android-sdk # id: android-sdk
with: # with:
key: android-sdk # key: android-sdk
path: | # path: |
/usr/local/lib/android/ # /usr/local/lib/android/
~/.android # ~/.android
- name: Cache Gradle # - name: Cache Gradle
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: | # path: |
./mobile/build/ # ./mobile/build/
./mobile/android/.gradle/ # ./mobile/android/.gradle/
key: ${{ runner.os }}-flutter-${{ hashFiles('**/*.gradle*', 'pubspec.lock') }} # key: ${{ runner.os }}-flutter-${{ hashFiles('**/*.gradle*', 'pubspec.lock') }}
- name: Setup Android SDK # - name: Setup Android SDK
if: steps.android-sdk.outputs.cache-hit != 'true' # if: steps.android-sdk.outputs.cache-hit != 'true'
uses: android-actions/setup-android@v2 # uses: android-actions/setup-android@v2
- name: AVD cache # - name: AVD cache
uses: actions/cache@v3 # uses: actions/cache@v3
id: avd-cache # id: avd-cache
with: # with:
path: | # path: |
~/.android/avd/* # ~/.android/avd/*
~/.android/adb* # ~/.android/adb*
key: avd-29 # key: avd-29
- name: create AVD and generate snapshot for caching # - name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true' # if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2.27.0 # uses: reactivecircus/android-emulator-runner@v2.27.0
with: # with:
working-directory: ./mobile # working-directory: ./mobile
cores: 2 # cores: 2
api-level: 29 # api-level: 29
arch: x86_64 # arch: x86_64
profile: pixel # profile: pixel
target: default # target: default
force-avd-creation: false # force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none # emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false # disable-animations: false
script: echo "Generated AVD snapshot for caching." # script: echo "Generated AVD snapshot for caching."
- name: Setup Flutter SDK # - name: Setup Flutter SDK
uses: subosito/flutter-action@v2 # uses: subosito/flutter-action@v2
with: # with:
channel: 'stable' # channel: 'stable'
flutter-version: '3.7.3' # flutter-version: '3.7.3'
cache: true # cache: true
- name: Run integration tests # - name: Run integration tests
uses: Wandalen/wretry.action@master # uses: Wandalen/wretry.action@master
with: # with:
action: reactivecircus/android-emulator-runner@v2.27.0 # action: reactivecircus/android-emulator-runner@v2.27.0
with: | # with: |
working-directory: ./mobile # working-directory: ./mobile
cores: 2 # cores: 2
api-level: 29 # api-level: 29
arch: x86_64 # arch: x86_64
profile: pixel # profile: pixel
target: default # target: default
force-avd-creation: false # force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none # emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true # disable-animations: true
script: | # script: |
flutter pub get # flutter pub get
flutter test integration_test # flutter test integration_test
attempt_limit: 3 # attempt_limit: 3