Update README.md #123
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: CI | |
on: | |
pull_request: | |
env: | |
APP_LOCATION: app/build/outputs/apk/debug/app-debug.apk | |
ORG_NAME: Wednesday-Test # The organisation name | |
GROUP_NAME: Testers # The group name, you can create as many as you want but mention the one you want to notify | |
APP_NAME: Android-Template # The app name, under wh | |
jobs: | |
lint_test_build: | |
name: Lint, Test and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Setup local.properties | |
env: | |
PROPS: ${{ secrets.LOCAL_PROPERTIES }} | |
run: echo -n "$PROPS" | base64 --decode > local.properties | |
- name: Ktlint | |
run: ./gradlew ktlint | |
- name: Lint | |
run: ./gradlew lintDevRelease | |
- name: Unit tests | |
run: ./gradlew testDevDebugUnitTest | |
- name: Build the apk | |
run: ./gradlew assembleDevDebug | |