Update Mockito and fix unit tests #33
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: Build, Test and Distribute | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Build | |
env: | |
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }} | |
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }} | |
run: "./gradlew assembleDebug" | |
- name: Check | |
env: | |
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }} | |
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }} | |
run: "./gradlew testDebug jacocoTestReport lintDebug buildDashboard" | |
- name: Distribute | |
env: | |
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }} | |
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }} | |
run: "./gradlew crashlyticsUploadDistributionDebug" | |
- name: Publish Code Coverage | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: "./gradlew coveralls" | |
androidTest: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Instrumentation Tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
env: | |
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }} | |
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }} | |
with: | |
api-level: 34 | |
arch: x86 | |
disable-animations: true | |
script: ./gradlew connectedAndroidTest --stacktrace |