mirror of https://github.com/readrops/Readrops.git
37 lines
966 B
YAML
37 lines
966 B
YAML
name: Android CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up JDK 1.17
|
|
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: Android Emulator Runner
|
|
uses: ReactiveCircus/android-emulator-runner@v2.30.1
|
|
with:
|
|
api-level: 29
|
|
script: ./gradlew clean build connectedCheck
|
|
- uses: codecov/codecov-action@v2.1.0
|
|
with:
|
|
files: ./build/reports/jacoco/jacocoFullReport.xml
|
|
fail_ci_if_error: false
|
|
verbose: true |