File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 5656 env :
5757 CHROME_BIN : ${{ steps.chrome.outputs.chrome-path }}
5858 run : |
59- # nếu bạn đã có cấu hình Karma CI riêng thì thay lệnh dưới bằng script đó
6059 npx ng test --watch=false --browsers=ChromeHeadless --code-coverage
6160
6261 - name : Upload coverage artifact
7271 if : ${{ env.SONAR_HOST_URL == '' }}
7372 uses : SonarSource/sonarcloud-github-action@v2
7473 env :
75- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
76- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN_FRONTEND }}
7775 with :
7876 args : >
7977 -Dsonar.qualitygate.wait=true
8381 if : ${{ env.SONAR_HOST_URL != '' }}
8482 uses : SonarSource/sonarqube-scan-action@v4
8583 env :
86- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
84+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN_FRONTEND }}
8785 SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }}
8886 with :
8987 args : >
Original file line number Diff line number Diff line change 11# ==== Sonar basics ====
2- sonar.projectKey =capstoneprojectcmc
2+ sonar.projectKey =CapstoneProjectCMC_frontend
33sonar.projectName =frontend
44sonar.projectVersion =1.0
5- sonar.organization =capstone-project-cmc-uni
5+ sonar.organization =capstoneprojectcmc
66
77sonar.sourceEncoding =UTF-8
88
You can’t perform that action at this time.
0 commit comments