Readrops/.github/workflows/android.yml

37 lines
966 B
YAML
Raw Normal View History

2020-03-22 17:58:09 +01:00
name: Android CI
on:
push:
branches:
2020-09-13 15:19:41 +02:00
- '**'
2020-03-22 17:58:09 +01:00
pull_request:
branches:
2020-09-13 15:19:41 +02:00
- '**'
2020-03-22 17:58:09 +01:00
jobs:
build:
2024-04-26 18:25:29 +02:00
runs-on: ubuntu-latest
2020-03-22 17:58:09 +01:00
steps:
2021-09-17 12:30:15 +02:00
- uses: actions/checkout@v2
2024-02-15 12:15:57 +01:00
- name: set up JDK 1.17
2023-08-14 16:20:33 +02:00
uses: actions/setup-java@v3
2021-09-17 12:30:15 +02:00
with:
2023-08-14 16:24:46 +02:00
distribution: 'temurin'
2024-02-15 12:15:57 +01:00
java-version: '17'
2024-04-26 18:25:29 +02:00
- 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
2021-09-17 12:30:15 +02:00
- name: Android Emulator Runner
2024-04-26 18:25:29 +02:00
uses: ReactiveCircus/android-emulator-runner@v2.30.1
2021-09-17 12:30:15 +02:00
with:
api-level: 29
script: ./gradlew clean build connectedCheck
2021-09-17 12:30:15 +02:00
- uses: codecov/codecov-action@v2.1.0
with:
2021-09-17 13:17:01 +02:00
files: ./build/reports/jacoco/jacocoFullReport.xml
2024-02-15 12:15:57 +01:00
fail_ci_if_error: false
2021-09-17 12:30:15 +02:00
verbose: true