Skip to content

build(deps-dev): Bump semantic-release from 24.2.9 to 25.0.2 #67

build(deps-dev): Bump semantic-release from 24.2.9 to 25.0.2

build(deps-dev): Bump semantic-release from 24.2.9 to 25.0.2 #67

name: Functional Tests
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- apiLevel: 30
emuTag: google_apis
arch: x86
env:
CI: true
ANDROID_AVD: emulator
APPIUM_TEST_SERVER_PORT: 4567
APPIUM_TEST_SERVER_HOST: 127.0.0.1
_FORCE_LOGS: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- run: npm install
name: Install dev dependencies
- run: |
cwd=$(pwd)
pushd "$cwd"
cd ~
npm install -g appium
appium driver install uiautomator2
appium plugin install --source=local "$cwd"
nohup appium server \
--use-plugins=devtools \
--port=$APPIUM_TEST_SERVER_PORT \
--address=$APPIUM_TEST_SERVER_HOST \
--relaxed-security \
--log-no-colors \
--log-timestamp \
2>&1 > "$cwd/appium.log" &
popd
name: Start Appium server
- run: nohup adb logcat > logcat.log &
name: Capture logcat
- uses: reactivecircus/android-emulator-runner@v2
name: e2e_api${{ matrix.apiLevel }}
with:
script: bash -xe scripts/run-functional-tests.sh
avd-name: ${{ env.ANDROID_AVD }}
sdcard-path-or-size: 1500M
api-level: ${{ matrix.apiLevel }}
disable-spellchecker: true
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
target: ${{ matrix.emuTag }}
arch: ${{ matrix.arch }}
ram-size: 4096M
heap-size: 1024M
- name: Save logcat output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: logcat-api${{ matrix.apiLevel }}
path: logcat.log
- name: Save server output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: appium-api${{ matrix.apiLevel }}
path: appium.log