Updates
This commit is contained in:
parent
645c43e8f8
commit
a00ba44968
|
@ -60,9 +60,21 @@ jobs:
|
|||
secrets: |
|
||||
${{ inputs.vault_secrets_base_path }} sonarqube_token | SONAR_TOKEN ;
|
||||
|
||||
- name: Cache sonar modules
|
||||
id: cache-sonar
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: cache-sonar-modules
|
||||
with:
|
||||
path: /opt/hostedtoolcache/.sonar/
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: run gradle sonar scan
|
||||
if: ${{ inputs.sonar_enabled }}
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
SONAR_USER_HOME: "/opt/hostedtoolcache/.sonar"
|
||||
run: ./gradlew sonar -i -s
|
||||
|
|
Loading…
Reference in New Issue