Updates
This commit is contained in:
parent
645c43e8f8
commit
a00ba44968
|
@ -60,9 +60,21 @@ jobs:
|
||||||
secrets: |
|
secrets: |
|
||||||
${{ inputs.vault_secrets_base_path }} sonarqube_token | SONAR_TOKEN ;
|
${{ 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
|
- name: run gradle sonar scan
|
||||||
if: ${{ inputs.sonar_enabled }}
|
if: ${{ inputs.sonar_enabled }}
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
env:
|
||||||
SONAR_USER_HOME: "/opt/hostedtoolcache/.sonar"
|
SONAR_USER_HOME: "/opt/hostedtoolcache/.sonar"
|
||||||
run: ./gradlew sonar -i -s
|
run: ./gradlew sonar -i -s
|
||||||
|
|
Loading…
Reference in New Issue