Remove notification request and add instrumentation test #20
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: CI | |
on: | |
push: | |
branches: [ main ] | |
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 |