Update Gradle and some of the dependencies #44
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 | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Make gradlew executable | |
run: chmod +x gradlew | |
- name: Create local.properties file | |
env: | |
storePassword: ${{ secrets.STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
run: | | |
echo storePassword=$storePassword >> ./local.properties | |
echo keyPassword=$keyPassword >> ./local.properties | |
- name: Set up Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Run unit tests | |
run: ./gradlew test | |
- name: Run instrumentation tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
arch: x86 | |
profile: Nexus 6 | |
avd-name: test | |
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./gradlew connectedCheck | |
- name: Build with Gradle | |
run: ./gradlew build |