Update dependency androidx.test.ext:junit-ktx to v1.2.1 #481
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: Android Build CI | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: [ '**.md', '**.MD' ] | |
pull_request: | |
branches: [ master ] | |
paths-ignore: [ '**.md', '**.MD' ] | |
workflow_dispatch: | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Cache gradle, wrapper and buildSrc | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Cache konan | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.konan/cache | |
~/.konan/dependencies | |
~/.konan/kotlin-native-macos* | |
~/.konan/kotlin-native-mingw* | |
~/.konan/kotlin-native-windows* | |
~/.konan/kotlin-native-linux* | |
~/.konan/kotlin-native-prebuilt-macos* | |
~/.konan/kotlin-native-prebuilt-mingw* | |
~/.konan/kotlin-native-prebuilt-windows* | |
~/.konan/kotlin-native-prebuilt-linux* | |
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-konan- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Spotless check | |
run: ./gradlew spotlessCheck | |
- name: Build debug APK | |
run: ./gradlew assembleDebug --warning-mode all --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-debug | |
path: androidApp/build/outputs/apk/debug/androidApp-debug.apk |