This commit is contained in:
Stuart Armstrong 2023-06-09 12:55:17 +03:00
parent 645c43e8f8
commit a00ba44968
1 changed files with 13 additions and 1 deletions

View File

@ -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