Fix build break of Android test #174
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 Check | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Prepare Gradle build | |
env: | |
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE }} | |
SIGN_STORE_PASSWORD: ${{ secrets.SIGN_STORE_PASSWORD }} | |
SIGN_KEY_ALIAS: ${{ secrets.SIGN_KEY_ALIAS }} | |
SIGN_KEY_PASSWORD: ${{ secrets.SIGN_KEY_PASSWORD }} | |
SONATYPEUSERNAME: ${{ secrets.SONATYPEUSERNAME }} | |
SONATYPEPASSWORD: ${{ secrets.SONATYPEPASSWORD }} | |
run: | | |
cd ./android | |
echo ${ENCODED_KEYSTORE} | base64 -d > ./app/keystore.jks | |
echo SIGN_KEY_STORE_PATH=keystore.jks >> local.properties | |
echo SIGN_STORE_PASSWORD=${SIGN_STORE_PASSWORD} >> local.properties | |
echo SIGN_KEY_ALIAS=${SIGN_KEY_ALIAS} >> local.properties | |
echo SIGN_KEY_PASSWORD=${SIGN_KEY_PASSWORD} >> local.properties | |
echo sonatypeUsername=${SONATYPEUSERNAME} >> local.properties | |
echo sonatypePassword=${SONATYPEPASSWORD} >> local.properties | |
- name: Android test | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 34 | |
target: google_apis_playstore | |
arch: aarch64 | |
script: cd ./android; ./gradlew connectedAndroidTest |