Refactor navigation code to remove unused screen #13
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 CI/CD Pipeline 🚀 | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
workflow_dispatch: # Allows manual trigger | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Check out code | |
uses: actions/checkout@v3 | |
- name: ☕ Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: 🗂️ Cache Gradle dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradlew*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: 🔑 Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: 🏗️ Build with Gradle | |
run: ./gradlew assembleRelease --scan --no-daemon | |
# - name: 🧪 Run Unit Tests | |
# run: ./gradlew test | |
# | |
# - name: 📤 Upload Test Reports | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: test-report | |
# path: build/reports/tests/test | |
- name: 🎨 Check Code Style with KtLint | |
run: ./gradlew ktlintCheck | |
- name: 📤 Upload KtLint Reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ktlint-report | |
path: build/reports/ktlint/ | |
- name: 📲 Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-apk | |
path: app/build/outputs/apk/release/*.apk |