Skip to content

Revise project structure descriptions in README #16

Revise project structure descriptions in README

Revise project structure descriptions in README #16

name: Android CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build, Test & Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Build Debug APK & Run Unit Tests
run: |
./gradlew clean assembleDebug testDebugUnitTest lint --no-daemon
# -------------------------------
# Upload APK
# -------------------------------
- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: weatherapp-debug-apk
path: app/build/outputs/apk/debug/app-debug.apk
# -------------------------------
# Upload Lint Reports
# -------------------------------
- name: Upload Lint Reports
if: always()
uses: actions/upload-artifact@v4
with:
name: lint-reports
path: app/build/reports/lint-results-*.html
# -------------------------------
# Upload Unit Test Reports
# -------------------------------
- name: Upload Unit Test Reports
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-reports
path: app/build/reports/tests/
# -------------------------------
# Upload Jacoco Test Reports
# -------------------------------
- name: Upload Jacoco Test Reports
if: always()
uses: actions/upload-artifact@v4
with:
name: jacoco-test-reports
path: app/build/reports/jacoco/jacocoTestReport/