Skip to content

ci: checks

ci: checks #4

Workflow file for this run

name: UI Tests

Check failure on line 1 in .github/workflows/ui-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ui-tests.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: check-conditions
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
check-conditions:
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.check-pr-status.outputs.should_run }}
ui-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Cache gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Decode google-services.json
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
env:
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build for debug with gradle
run: ./gradlew assembleDebug
- name: Start Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
arch: x86_64
profile: Nexus 6
script: ./gradlew connectedDebugAndroidTest
- name: Run Compose UI tests
run: ./gradlew connectedDebugAndroidTest
- name: Upload UI test report
if: always()
uses: actions/upload-artifact@v4
with:
name: compose_test_report
path: app/build/reports/androidTests/connected/