Skip to content

Setup testing on Android Chrome #36

Setup testing on Android Chrome

Setup testing on Android Chrome #36

Workflow file for this run

on:
pull_request:
branches: main
schedule:
- cron: '25 2 * * 6'
jobs:
code-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm install -g appium
name: Install appium
- name: Install java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Enable KVM
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
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Install UIAutomator2
run: appium driver install uiautomator2
- name: Check UIAutomator2 installation
run: appium driver doctor uiautomator2
- name: Run appium server in the background
run: appium &
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install front end dependencies
run: python3.12 -m install_front_end_deps
- name: Install python packages
run: |
python3.12 -m pip install --upgrade pip
python3.12 -m pip install -r requirements-dev.txt
- name: Run code checks
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 35
script: ./code_checks.sh