-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #ED-4414 fix: added sonar token
- Loading branch information
1 parent
6a21efc
commit 6e6f8a4
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,5 +54,20 @@ jobs: | |
- name: Install Sonar Scanner | ||
run: sudo npm install -g [email protected] | ||
|
||
- name: Run Sonar Scanner | ||
run: sonar-scanner | ||
- name: Cache SonarQube Scanner | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonarqube-${{ hashFiles('**/sonar-project.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-sonarqube- | ||
- name: Run SonarQube Analysis | ||
run: | | ||
sonar-scanner \ | ||
-Dsonar.projectKey=Sunbird-Ed_SunbirdEd-mobile-app \ | ||
-Dsonar.organization=sunbird-ed \ | ||
-Dsonar.host.url=https://sonarcloud.io \ | ||
-Dsonar.login=$SONAR_TOKEN | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |