Using integrated cache in ``actions/setup-java``
https://github.com/actions/setup-java#caching-gradle-dependencies
This commit is contained in:
parent
d9086300f3
commit
a825253b7f
|
@ -38,13 +38,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
cache: 'gradle'
|
||||||
- name: Cache Gradle dependencies
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/caches
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
|
||||||
|
|
||||||
- name: Build debug APK and run jvm tests
|
- name: Build debug APK and run jvm tests
|
||||||
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
|
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
|
||||||
|
@ -70,13 +64,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
cache: 'gradle'
|
||||||
- name: Cache Gradle dependencies
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/caches
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
|
||||||
|
|
||||||
- name: Run android tests
|
- name: Run android tests
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
|
@ -98,6 +86,7 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# java-version: 11 # Sonar requires JDK 11
|
# java-version: 11 # Sonar requires JDK 11
|
||||||
# distribution: "temurin"
|
# distribution: "temurin"
|
||||||
|
# cache: 'gradle'
|
||||||
|
|
||||||
# - name: Cache SonarCloud packages
|
# - name: Cache SonarCloud packages
|
||||||
# uses: actions/cache@v2
|
# uses: actions/cache@v2
|
||||||
|
@ -106,13 +95,6 @@ jobs:
|
||||||
# key: ${{ runner.os }}-sonar
|
# key: ${{ runner.os }}-sonar
|
||||||
# restore-keys: ${{ runner.os }}-sonar
|
# restore-keys: ${{ runner.os }}-sonar
|
||||||
|
|
||||||
# - name: Cache Gradle packages
|
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: ~/.gradle/caches
|
|
||||||
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
||||||
# restore-keys: ${{ runner.os }}-gradle
|
|
||||||
|
|
||||||
# - name: Build and analyze
|
# - name: Build and analyze
|
||||||
# env:
|
# env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
|
|
Loading…
Reference in New Issue