Skip to content

Update build.gradle.kts #205

Update build.gradle.kts

Update build.gradle.kts #205

Workflow file for this run

name: CI
on: push
jobs:
build:
runs-on: macos-latest
steps:
- name: "📥 Check-out"
uses: actions/checkout@v4
- name: "🧪 Gradle Wrapper Validation"
uses: gradle/wrapper-validation-action@v3
- name: "🧰 Install JDK"
uses: actions/setup-java@v4
with:
java-version: 1.8
java-package: jdk
- name: "🧰 Install Android SDK"
uses: android-actions/setup-android@v3
- name: "📁 Copy local CI properties"
run: cp ci/local.properties ./
- name: "🏗 Build"
run: ./gradlew assembleDebug
- name: "🧪 Android LINT"
run: ./gradlew lint
- name: "🧪 Code coverage"
run: ./gradlew jacocoTestReport
- name: "🧪 Unit test"
run: ./gradlew test
- name: "🧪 Integration test"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 25
script: ./gradlew connectedAndroidTest
- name: "📤 Upload code coverage"
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}