Skip to content

Commit

Permalink
Added SonarCloud scan
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed May 27, 2024
1 parent 6852f20 commit d345a30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ jobs:
run: npm ci

#Run sonar cloud scan
#- name: SonarCloud Scan
# uses: sonarsource/sonarcloud-github-action@2.2.1
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Build
run: npm run build --if-present
Expand Down

0 comments on commit d345a30

Please sign in to comment.