Merge pull request #358 from hannesa2/LintWarnings #599
This file contains hidden or 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: pull request | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| Test: | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| repository-projects: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| api: [ 34 ] | |
| tag: [ default ] | |
| abi: [ x86_64 ] | |
| emulatorApi: [ 9 ] | |
| java_version: [ 17 ] | |
| steps: | |
| - name: kvm support | |
| run: | | |
| egrep -c '(vmx|svm)' /proc/cpuinfo | |
| id | |
| sudo adduser $USER kvm | |
| sudo chown -R $USER /dev/kvm | |
| id | |
| - name: prepare | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y exiftool imagemagick xdg-utils libimage-exiftool-perl zsh jq xorg | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'adopt' | |
| java-version: 17 | |
| - uses: gradle/actions/wrapper-validation@v6 | |
| - name: Build with Gradle | |
| run: ./gradlew assemble | |
| - name: Install Android SDK | |
| uses: hannesa2/action-android/install-sdk@0.1.16.7 | |
| - name: Run instrumentation tests | |
| uses: hannesa2/action-android/emulator-run-cmd@0.1.16.7 | |
| with: | |
| cmd: ./gradlew cAT --continue | |
| api: ${{ matrix.api }} | |
| tag: ${{ matrix.tag }} | |
| abi: ${{ matrix.abi }} | |
| cmdOptions: -noaudio -no-boot-anim -no-window -metrics-collection | |
| - name: Archive screenshots | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: Updater-Screenshots | |
| if-no-files-found: error | |
| path: | | |
| app/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected | |
| app/build/outputs/androidTest-results/connected | |
| - name: Archive Espresso results | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| if-no-files-found: error | |
| name: Updater-Espresso-report | |
| path: app/build/reports/androidTests/connected |