mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-05 23:19:10 +00:00
Format code, add google-services.json as Github secret
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user