Update the theme to material 3, with new search ui, in addition to other smaller changes). #95
Workflow file for this run
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
env: | |
ANDROID_SDK_ROOT: ${{vars.ANDROID_SDK_ROOT}} | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Start Genymotion Cloud SaaS instance | |
uses: genymobile/genymotion-saas-github-action@v1 | |
with: | |
api_token: ${{ secrets.GMSAAS_API_TOKEN }} | |
recipe_uuid: ${{ vars.GMSAAS_RECIPE_UUID }} | |
- name: Run tests | |
run: bash scripts/run_tests.bash | |
- name: Publish Unit Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: "app/build/test-results/testDebugUnitTest/*.xml" | |
check_name: UnitTests | |
- name: Publish Instrumentation Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() # always run even if the previous step fails | |
with: | |
report_paths: "app/build/outputs/androidTest-results/connected/**/*.xml" | |
check_name: InstrumentationTests | |
- name: Add coverage to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
paths: | | |
${{ github.workspace }}/app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Archive unit tests | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit-tests | |
path: app/build/reports/tests/testDebugUnitTest | |
- name: Archive instrumentation tests | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: instrumentation-tests | |
path: app/build/reports/androidTests/connected/debug | |
- name: Archive coverage | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: app/build/reports/jacoco | |
- name: Archive logcat | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logcat | |
path: /tmp/lolcat.log | |
- name: Archive apks | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apks | |
path: | | |
./app/build/outputs/apk/debug/app-debug.apk | |
./app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk |