MOPPAND-1700 Setup Github actions for Android and unit tests and App … #9
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: RIA DigiDoc Android | |
| on: [push, pull_request] | |
| env: | |
| BUILD_NUMBER: ${{ github.run_number }} | |
| jobs: | |
| ubuntu: | |
| name: Build on Ubuntu | |
| if: contains(github.repository, 'open-eid/RIA-DigiDoc-Android') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup environment | |
| env: | |
| GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
| run: | | |
| cd ${{ github.workspace }}/app | |
| echo -n "$GOOGLE_SERVICES_JSON" | base64 --decode > "google-services.json" | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Test and Build with Gradle | |
| run: ./gradlew clean createDebugCoverageReport | |