Skip to content

Commit 3113531

Browse files
committed
Update
1 parent ddba31c commit 3113531

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci-sonar-angular.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
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
@@ -72,8 +71,7 @@ jobs:
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
@@ -83,7 +81,7 @@ jobs:
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: >

sonar-project.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ==== Sonar basics ====
2-
sonar.projectKey=capstoneprojectcmc
2+
sonar.projectKey=CapstoneProjectCMC_frontend
33
sonar.projectName=frontend
44
sonar.projectVersion=1.0
5-
sonar.organization=capstone-project-cmc-uni
5+
sonar.organization=capstoneprojectcmc
66

77
sonar.sourceEncoding=UTF-8
88

0 commit comments

Comments
 (0)