Sonarcloud: Enable caching
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Thu, 14 Oct 2021 13:25:50 +0000 (15:25 +0200)
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>
Tue, 19 Oct 2021 14:05:55 +0000 (14:05 +0000)
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
.github/workflows/sonarcloud.yml
sonar-project.properties

index 20caa404d57bc1996e2b716d05116f3867aa14b2..3df624a7d5a54c83003528100736430543781de5 100644 (file)
@@ -17,6 +17,13 @@ jobs:
       - uses: actions/checkout@v2
         with:
           fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+
+      - name: Restore cache
+        uses: actions/cache@v2
+        with:
+          path: /cache
+          key: ${{ runner.os }}
+
       - name: Run build-wrapper
         run: |
           mkdir build
index d733e8ff6a4c969669c32f6656e12d9f55d21301..536c82d55f05c998af6169fba70dd1be3e288740 100644 (file)
@@ -5,3 +5,5 @@ sonar.exclusions=3rdparty/**
 sonar.language=c++
 sonar.cfamily.cache.enabled=false
 sonar.cfamily.threads=2
+sonar.cfamily.cache.enabled=true,
+sonar.cfamily.cache.path=/cache/sonarcloud