Merge pull request #114 from Crazy-Marvin/dependabot/gradle/androidx.… #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |