Running Android Lint #35
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 Lint | |
| run-name: Running Android Lint | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| jobs: | |
| android-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Create secrets.properties | |
| run: | | |
| echo "GOOGLE_AUTH_WEB_CLIENT_ID=${{ secrets.GOOGLE_AUTH_WEB_CLIENT_ID }}" >> secrets.properties | |
| echo "BASE_API_URL_PROD=${{ secrets.BASE_API_URL_PROD }}" >> secrets.properties | |
| echo "BASE_API_URL_DEV=${{ secrets.BASE_API_URL_DEV }}" >> secrets.properties | |
| - name: Create google-services.json | |
| run: | | |
| echo "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | base64 --decode > app/google-services.json | |
| - name: Run Lint | |
| run: ./gradlew lint | |
| continue-on-error: false |