Add cache action #3

Merged
stanislav.melnichuk merged 4 commits from Add-cache-action into master 2023-06-09 10:14:24 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 7bbc00393c - Show all commits

View File

@ -67,7 +67,7 @@ jobs:
cache-name: cache-sonar-modules
with:
path: /opt/hostedtoolcache/.sonar/

this should be the like that
User cache: /root/.sonar/cache

this should be the like that User cache: /root/.sonar/cache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle','**/settings.gradle') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
@ -75,8 +75,6 @@ jobs:
- name: run gradle sonar scan
if: ${{ inputs.sonar_enabled }}
env:
SONAR_USER_HOME: "/opt/hostedtoolcache/.sonar"
run: ./gradlew sonar -i -s
- name: dockerfile lint check