Skip to content

Add gemini (#5)

Add gemini (#5) #38

Workflow file for this run

name: CI
on:
push:
branches: [ main, add-gemini ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "temurin"
- name: Run Lint
run: ./gradlew lintDebug
- name: Upload html test report
uses: actions/upload-artifact@v2
with:
name: lint.html
path: app/build/reports/lint-results-debug.html
package:
needs: [ lint ]
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "temurin"
- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: memorize-phrase.apk
path: app/build/outputs/apk/debug/app-debug.apk
connected-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "temurin"
- name: Run connected tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
api-level: 30
target: google_apis
arch: x86_64
script: ./gradlew connectedCheck
- name: Upload html test report
uses: actions/upload-artifact@v2
with:
name: instrumented-test.html
path: app/build/reports/androidTests/connected/debug/index.html