Feat/#26 session interceptor #67
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: Android CI | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| # Only allows reading | |
| permissions: | |
| contents: read | |
| # Only keep last run for the same branch | |
| concurrency: | |
| group: android-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_and_test: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout codes | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| # Prepare local properties | |
| - name: Prepare local properties | |
| run: printf '%s' "${{ secrets.LOCAL_PROPERTIES_CI }}" > local.properties | |
| # Prepare Java | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| # Setup Gradle | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| # Grant permission for gradlew | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| # Run test, lint and build | |
| - name: Run unit tests, lint check and build | |
| run: ./gradlew --stacktrace --continue spotlessCheck detekt testDebugUnitTest lintDebug assembleDebug | |
| # Upload lint results from all modules | |
| - name: Upload lint report artifact | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: lint-report | |
| path: '**/build/reports/lint-results-debug.html' | |
| if-no-files-found: warn | |
| # Upload test results from all modules | |
| - name: Upload test report artifact | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-report | |
| path: '**/build/reports/tests/testDebugUnitTest/' | |
| if-no-files-found: warn |