changed index file #144
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: build | |
on: | |
push: | |
branches: | |
- 'development' | |
- 'master' | |
- 'mvvm' | |
pull_request_target: | |
branches: | |
- 'development' | |
- 'master' | |
- 'mvvm' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant Permission to Execute | |
run: chmod +x gradlew | |
- name: Decode google-services.json | |
env: | |
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
run: echo $FIREBASE_CONFIG > app/google-services.json | |
- name: Build with Gradle | |
run: ./gradlew build | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant Permission to Execute | |
run: chmod +x gradlew | |
- name: Decode google-services.json | |
env: | |
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
run: echo $FIREBASE_CONFIG > app/google-services.json | |
- name: Unit tests | |
run: bash ./gradlew test --stacktrace | |
apk: | |
name: Generate APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant Permission to Execute | |
run: chmod +x gradlew | |
- name: Decode google-services.json | |
env: | |
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
run: echo $FIREBASE_CONFIG > app/google-services.json | |
- name: Build debug APK | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/app-debug.apk | |