Merge pull request #27 from StreamAMG/release/1.0.4 #26
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: Android Build and Test | |
on: | |
push: | |
branches: [ "main", "release/*"] | |
pull_request: | |
branches: [ "main", "release/*" ] | |
jobs: | |
build: | |
name: Gradle build and test | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Java JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
java-package: 'jdk' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Clean build directory | |
run: ./gradlew clean | |
- name: Run unit tests | |
run: ./gradlew testDebugUnitTest --warning-mode=all --scan |