Skip to content

Commit

Permalink
Restore
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed May 3, 2024
1 parent a013de2 commit 1317f25
Showing 1 changed file with 10 additions and 77 deletions.
87 changes: 10 additions & 77 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ concurrency:
cancel-in-progress: true

jobs:
test_older_apis:
test:
strategy:
matrix:
include:
- platformVersion: "12.0"
apiLevel: 32
emuTag: google_apis
arch: x86_64
- platformVersion: "11.0"
apiLevel: 30
emuTag: google_apis
arch: x86
- platformVersion: "9.0"
apiLevel: 28
emuTag: default
Expand Down Expand Up @@ -55,82 +63,7 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: linux-avd-${{ matrix.apiLevel }}
# https://github.com/marketplace/actions/android-emulator-runner
- uses: reactivecircus/android-emulator-runner@v2
if: steps.avd-cache.outputs.cache-hit != 'true'
name: Generate AVD snapshot for caching
with:
script: echo "Generated AVD snapshot for caching."
avd-name: $ANDROID_AVD
force-avd-creation: false
api-level: ${{ matrix.apiLevel }}
disable-spellchecker: true
target: ${{ matrix.emuTag }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
arch: ${{ matrix.arch }}
disable-animations: true
- run: nohup adb logcat > logcat.log &
name: Capture Logcat
- uses: reactivecircus/android-emulator-runner@v2
name: api${{ matrix.apiLevel }}_e2e
with:
script: npm run e2e-test
avd-name: $ANDROID_AVD
force-avd-creation: false
api-level: ${{ matrix.apiLevel }}
disable-spellchecker: true
target: ${{ matrix.emuTag }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
arch: ${{ matrix.arch }}
disable-animations: true
- name: Save logcat output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: logcat-api${{ matrix.apiLevel }}
path: logcat.log

test_newer_apis:
strategy:
matrix:
include:
- platformVersion: "12.0"
apiLevel: 32
emuTag: google_apis
arch: arm64-v8a
- platformVersion: "11.0"
apiLevel: 30
emuTag: google_apis
arch: arm64-v8a
fail-fast: false
env:
CI: true
ANDROID_AVD: emulator
ANDROID_SDK_VERSION: "${{ matrix.apiLevel }}"
PLATFORM_VERSION: "${{ matrix.platformVersion }}"
EMU_TAG: "${{ matrix.emuTag }}"
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm install --no-package-lock
name: Install dev dependencies
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: mac-avd-${{ matrix.apiLevel }}
key: avd-${{ matrix.apiLevel }}
# https://github.com/marketplace/actions/android-emulator-runner
- uses: reactivecircus/android-emulator-runner@v2
if: steps.avd-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 1317f25

Please sign in to comment.