Merge pull request #2822 from hussainmohd-a/dev-v055y #2471
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 | |
| env: | |
| VARIANT: assembleWebsiteFullDebug | |
| steps: | |
| - name: 🥏 Checkout | |
| uses: actions/checkout@v6 | |
| - name: ☕️ JDKv17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: ⚡️ +x gradlew | |
| run: chmod +x gradlew | |
| - name: 🎪 Secrets | |
| if: success() | |
| # TODO: override iff it doesn't exist | |
| # developers.google.com/android/guides/google-services-plugin#adding_the_json_file | |
| run: | | |
| mkdir -p app/src/debug | |
| echo "${GSCV_TEST_JSON}" > app/src/debug/google-services.json | |
| # expected: l:29 w:45 m:691 | |
| wc -lwm app/src/debug/google-services.json | |
| if [ -z "$GSCV_TEST_JSON" ]; then | |
| echo "VARIANT=assembleFdroidFullDebug" >> "$GITHUB_ENV" | |
| fi | |
| env: | |
| GSCV_TEST_JSON: ${{ secrets.GOOGLE_SERVICES_TEST_JSON }} | |
| - name: 🚂 Assemble | |
| if: success() | |
| run: | | |
| ./gradlew lint | |
| ./gradlew \ | |
| ${VARIANT} \ | |
| --info \ | |
| --warning-mode all | |
| env: | |
| VARIANT: ${{ env.VARIANT }} |