Skip to content

fix unit tests

fix unit tests #12

Workflow file for this run

name: Android CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Make Gradlew executable
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Run tests
run: ./gradlew test
- name: Get APK artifact
run: mv app/build/outputs/apk/debug/app-debug.apk $GITHUB_WORKSPACE/app-debug.apk
if: success()
- name: Upload APK artifact
uses: actions/upload-artifact@v2
with:
name: app-debug
path: $GITHUB_WORKSPACE/app-debug.apk