This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
chore(deps): update dependency gradle to v8.10.1 #730
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: Copy google-services.json | |
env: | |
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICE_JSON }} | |
run: echo "$GOOGLE_SERVICES" | base64 --decode > ./app/google-services.json | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Check spotless | |
run: ./gradlew spotlessCheck --no-configuration-cache | |
- name: Build project | |
run: ./gradlew assemble | |
- name: Upload build outputs (APKs) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: APKs | |
path: "**/build/outputs/apk/**/*.apk" | |
- name: Run unit tests | |
run: ./gradlew testDebugUnitTest | |
androidTest: | |
needs: build | |
runs-on: macOS-latest | |
timeout-minutes: 45 | |
strategy: | |
matrix: | |
api-level: [31] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: Copy google-services.json | |
env: | |
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE_JSON }} | |
run: echo $GOOGLE_SERVICE | base64 --decode > ./app/google-services.json | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run instrumentation tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: x86_64 | |
disable-animations: true | |
disk-size: 2048M | |
heap-size: 512M | |
script: ./gradlew connectedDebugAndroidTest |