Skip to content

Update gradle and material #489

Update gradle and material

Update gradle and material #489

Workflow file for this run

name: Android CI
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_VERSION: '17'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: 'gradle'
- name: Run Detekt
run: ./gradlew detekt
- name: Run Lint
run: ./gradlew lintDebug
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: Build APK
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: test_reports
path: |
app/build/reports/detekt/detekt.html
app/build/reports/lint-results-debug.html
app/build/reports/tests/testDebugUnitTest/