From a825253b7fb2a8c87f8463d7318b860a773149e6 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sat, 28 Aug 2021 15:22:04 +0200 Subject: [PATCH] Using integrated cache in ``actions/setup-java`` https://github.com/actions/setup-java#caching-gradle-dependencies --- .github/workflows/ci.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5326f639c..a876df8fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,13 +38,7 @@ jobs: with: java-version: 8 distribution: "temurin" - - - name: Cache Gradle dependencies - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + cache: 'gradle' - name: Build debug APK and run jvm tests run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint @@ -70,13 +64,7 @@ jobs: with: java-version: 8 distribution: "temurin" - - - name: Cache Gradle dependencies - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + cache: 'gradle' - name: Run android tests uses: reactivecircus/android-emulator-runner@v2 @@ -98,6 +86,7 @@ jobs: # with: # java-version: 11 # Sonar requires JDK 11 # distribution: "temurin" +# cache: 'gradle' # - name: Cache SonarCloud packages # uses: actions/cache@v2 @@ -106,13 +95,6 @@ jobs: # key: ${{ 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 # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any