Remove the "x days behind" chip on the app cards, as they are current… #16
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: Android CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck | |
| # TODO: Detekt rules are not fully respected on this code right now. | |
| # - name: Run detekt | |
| # run: ./gradlew detekt | |
| - name: Run unit tests | |
| run: ./gradlew testDebugUnitTest | |
| - name: Test Report | |
| uses: dorny/test-reporter@v2 | |
| if: always() | |
| with: | |
| name: JUnit Tests | |
| path: 'app/build/test-results/testDebugUnitTest/TEST-*.xml' | |
| reporter: java-junit | |
| fail-on-error: false | |
| - name: Build debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-apk | |
| path: app/build/outputs/apk/debug/app-debug.apk |