This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
created receive screen #8
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: Test/Build Android | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Cache gradle | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Linter (gradle) | |
run: ./gradlew ktlintCheck | |
- name: Test (gradle) | |
run: ./gradlew test --no-daemon | |
- name: Android Test Report | |
uses: asadmansr/android-test-report-action@v1.2.0 | |
if: ${{ always() }} # IMPORTANT: run Android Test Report regardless | |
- name: Build APK (gradle) | |
run: ./gradlew assembleDebug --no-daemon | |
- name: Upload APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Debug APK | |
path: app/build/outputs/apk/debug/app-universal-debug.apk | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Build Reports | |
path: app/build/reports | |