Set serverAnonymisation more quickly (close #689) #953
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
api-level: | |
- 21 | |
- 24 | |
- 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- 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 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Configure JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Run Tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
target: google_apis | |
script: | | |
adb logcat -c | |
adb logcat > logcat.log & | |
./gradlew createDebugCoverageReport | |
env: | |
API_LEVEL: ${{ matrix.api-level }} | |
- name: Load logs if failed | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: logcat-${{ matrix.api-level }} | |
path: logcat.log | |
- name: Load code coverage report | |
if: success() && matrix.api-level == '24' | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: ./gradlew coveralls |