Format code, add google-services.json as Github secret

This commit is contained in:
Matte23
2020-10-30 11:09:31 +01:00
parent b3fb785f95
commit 361631b6ac
4 changed files with 37 additions and 20 deletions

View File

@@ -17,6 +17,11 @@ jobs:
uses: actions/setup-java@v1.4.2
with:
java-version: 1.8
- name: Inflate google-services.json
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
- name: Unit tests
run: bash ./gradlew test
@@ -30,6 +35,11 @@ jobs:
uses: actions/setup-java@v1.4.2
with:
java-version: 1.8
- name: Inflate google-services.json
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
- name: Run Android Lint
run: bash ./gradlew lint
@@ -43,6 +53,11 @@ jobs:
uses: actions/setup-java@v1.4.2
with:
java-version: 1.8
- name: Inflate google-services.json
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
- name: Run Kotlin Lint
run: bash ./gradlew ktlintCheck
@@ -56,6 +71,11 @@ jobs:
uses: actions/setup-java@v1.4.2
with:
java-version: 1.8
- name: Inflate google-services.json
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES_JSON > app/google-services.json
- name: Build debug APK
run: bash ./gradlew assembleDebug
- name: Upload APK