v055v #2155
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 | |
| uses: actions/checkout@v4 | |
| - name: ☕️ JDKv17 | |
| uses: actions/setup-java@v3 | |
| 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 | |
| env: | |
| GSCV_TEST_JSON: ${{ secrets.GOOGLE_SERVICES_TEST_JSON }} | |
| - name: 🚂 Assemble | |
| if: success() | |
| run: | | |
| ./gradlew lint | |
| ./gradlew \ | |
| assembleWebsiteFullDebug \ | |
| --info \ | |
| --warning-mode all |