Skip to content

Refactor Topic Screen to load data from Firestore #73

Refactor Topic Screen to load data from Firestore

Refactor Topic Screen to load data from Firestore #73

Workflow file for this run

name: tests
on:
pull_request:
branches: ['*']
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
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: Set up Android SDK
uses: android-actions/setup-android@v2
with:
api-level: 33
build-tools: "33.0.2"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create local.properties
run: echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: gradle-cache-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
restore-keys: gradle-cache-${{ runner.os }}-
- name: Run ktlint check
run: ./gradlew ktlintCheck
- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v4
with:
name: build-outputs
path: ./app/build/outputs
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: ./app/build/reports