chore(deps): update dependency gradle to v8.11.1 #8741
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/[email protected] | |
- name: Set upt JDK 17 | |
uses: actions/[email protected] | |
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/[email protected] | |
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/[email protected] | |
with: | |
name: test-report-example-projects | |
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests | |
if-no-files-found: ignore |