diff --git a/.github/workflows/codecompare.yml b/.github/workflows/codecompare.yml index 8e8fecc6..9cc4308c 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