Skip to content

Merge pull request #54 from SimonMarquis/dependabot/github_actions/gr… #169

Merge pull request #54 from SimonMarquis/dependabot/github_actions/gr…

Merge pull request #54 from SimonMarquis/dependabot/github_actions/gr… #169

Workflow file for this run

name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-tests-lint:
name: Build & Tests & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Decode google-services.json
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $GOOGLE_SERVICES_JSON > ./app/google-services.json
- name: Assemble → Test → Lint
uses: gradle/gradle-build-action@8e02c8272aba4650563824b7012f8a86158901c6 # v2.5.0
with:
arguments: assembleDebug test lint --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload UnitTest reports
uses: actions/upload-artifact@v3
with:
name: unit-tests-reports
path: |
**/reports/tests/test*UnitTest/
**/build/test-results/Test-*.xml
- name: Upload Lint reports
uses: actions/upload-artifact@v3
with:
name: lint-reports
path: |
**/reports/lint-results-*.xml
**/reports/lint-results-*.html