Updated config.yml #11
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: UI Tests | |
on: | |
push: | |
branches: [ "master", "development" ] | |
pull_request: | |
branches: [ "master", "development" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '16' | |
distribution: 'adopt-hotspot' | |
cache: gradle | |
- name: write keystore.properties file | |
env: | |
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} | |
run: | | |
printenv KEYSTORE_PROPERTIES | |
touch keystore.properties | |
echo "$KEYSTORE_PROPERTIES" >> keystore.properties | |
cat keystore.properties | |
- name: Decode Keystore | |
env: | |
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }} | |
run: | | |
echo $ENCODED_KEYSTORE | base64 --decode > shotclockapp.jks | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Verify Emulator version | |
run: /Users/runner/Library/Android/sdk/emulator/emulator -version | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run UI Tests | |
run: ./gradlew nexus5api30DebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.sdk.channel=3 |