ci: Use setup-build-env in the apk-on-comment workflow (#616)

This commit is contained in:
Nik Clayton 2024-04-15 15:40:30 +02:00 committed by GitHub
parent cc9efbfa7a
commit b9e8fc6e57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 14 deletions

View File

@ -29,21 +29,9 @@ jobs:
with: with:
ref: ${{ steps.comment-branch.outputs.head_ref }} ref: ${{ steps.comment-branch.outputs.head_ref }}
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 - uses: ./.github/actions/setup-build-env
with: with:
java-version: '17' gradle-cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
distribution: 'temurin'
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Setup Gradle
uses: gradle/actions/setup-gradle@1168cd3d07c1876a65e1724114de42ccbdfa7b78 # v3
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test - name: Test
run: ./gradlew app:testOrangeGoogleReleaseUnitTest --stacktrace run: ./gradlew app:testOrangeGoogleReleaseUnitTest --stacktrace