Feat/#66 search view #96
Workflow file for this run
This file contains hidden or 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: Flint Lint CI | |
| on: | |
| pull_request: | |
| branches: [ develop, main ] | |
| jobs: | |
| lint: | |
| name: PR Lint Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Create local.properties | |
| env: | |
| DEV_BASE_URL: ${{ secrets.DEV_BASE_URL }} | |
| run: | | |
| echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties | |
| echo "base.url=\"${DEV_BASE_URL}\"" >> local.properties | |
| - name: Grant permission to gradlew | |
| run: chmod +x ./gradlew | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck | |
| - name: Upload ktlint reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ktlint-reports | |
| path: app/build/reports/ktlint/ | |
| build: | |
| name: PR Build Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Create local.properties | |
| env: | |
| DEV_BASE_URL: ${{ secrets.DEV_BASE_URL }} | |
| run: | | |
| echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties | |
| echo "base.url=\"${DEV_BASE_URL}\"" >> local.properties | |
| - name: Grant permission to gradlew | |
| run: chmod +x ./gradlew | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug --stacktrace |