fix(deps): update dependency androidx.appcompat:appcompat to v1.7.0 #8144
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 and test android plugin and projects" | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
name: Build and test android | |
runs-on: ubuntu-latest | |
env: | |
ANDROID: true | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- name: Set upt JDK 17 | |
uses: actions/setup-java@v4.4.0 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
- name: Grant execute permission for bash script | |
run: chmod +x scripts/local_android_release_with_version.sh | |
- name: Load the bash script | |
run: source scripts/local_android_release_with_version.sh | |
#taken straight from the android-emulator-runner documentation | |
- name: Enable KVM group perms for android emulater | |
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: Test Android plugin and Android example project | |
uses: reactivecircus/android-emulator-runner@v2.32.0 | |
with: | |
api-level: 29 | |
script: "bash -c 'source scripts/source_files/helper_functions.sh && runAndroidTestOnGivenProject jgiven-android-test/build.gradle 1.1-t && runAndroidTestOnGivenProject example-projects/android/build.gradle 1.1-t'" | |
- name: Upload test results html files | |
continue-on-error: true | |
if: ${{failure()}} | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: test-report-example-projects | |
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests | |
if-no-files-found: ignore |