Fix snackbar 1104 #902
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: Treetracker Android App CI PR | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
pull_request: | |
branches: [ master, release* ] | |
jobs: | |
build: | |
name: test and assemble | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Generate dummy property file | |
run: | | |
echo "#Treetracker API Keys | |
treetracker_client_id=dummy-id | |
treetracker_client_secret=dummy-secret | |
s3_dev_identity_pool_id=dummy-pool-id-dev | |
s3_test_identity_pool_id=dummy-pool-id-test" > treetracker.keys.properties | |
- name: Unit tests | |
run: bash ./gradlew test --stacktrace | |
- name: Build Debug APK | |
run: bash ./gradlew :app:assembleDebug | |
- name: Delete dummy property file | |
run: rm treetracker.keys.properties |