From ae5a4ea81800a8f68ad12f6f541972cf7bdddcdd Mon Sep 17 00:00:00 2001 From: Speiger Date: Tue, 19 Apr 2022 16:33:16 +0200 Subject: [PATCH] Readded caching --- .github/workflows/codecompare.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/codecompare.yml b/.github/workflows/codecompare.yml index 8e8fecc..9cc4308 100644 --- a/.github/workflows/codecompare.yml +++ b/.github/workflows/codecompare.yml @@ -21,6 +21,18 @@ jobs: run: chmod +x ./gradlew - name: Generate SourceCode with Gradle run: ./gradlew generateGithubSource + - name: Cache SonarCloud packages + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Cache Gradle packages + uses: actions/cache@v1 + 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