Skip to content

Commit

Permalink
ci: add sonar cloud scan
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasaraldi committed May 8, 2024
1 parent 043bcdc commit 6f6827e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Auth GCloud
uses: "google-github-actions/auth@v2.1.2"
Expand Down
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sonar.projectKey=tribofustack_orderly-api
sonar.organization=tribofustack
sonar.projectName=orderly-api
sonar.projectVersion=1.0
sonar.sources=./src
sonar.exclusions=**/*.spec.ts
# sonar.test.exclusions=**/*.spec.ts
# sonar.javascript.coveragePlugin=lcov
# sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.sourceEncoding=UTF-8

0 comments on commit 6f6827e

Please sign in to comment.