feat(tools): set up sonar #1

Merged
naomi merged 19 commits from feat/sonar into main 2025-02-26 13:03:33 -08:00
2 changed files with 5 additions and 29 deletions
Showing only changes of commit e1802d7c27 - Show all commits

View File

@ -1,24 +0,0 @@
name: Code Analysis
on:
push:
branches:
- main
jobs:
sonar:
name: SonarQube
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
- name: Sonar
uses: SonarSource/sonarqube-scan-action@v4
timeout-minutes: 10
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
with:
args: >
-Dsonar.sources=.
-Dsonar.projectKey=typescript-config

View File

@ -1,5 +1,8 @@
name: Code Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
@ -11,6 +14,8 @@ jobs:
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sonar
uses: SonarSource/sonarqube-scan-action@v4
@ -18,12 +23,7 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
PR_KEY: ${{ github.event.pull_request.number }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
with:
args: >
-Dsonar.sources=.
-Dsonar.projectKey=typescript-config
-Dsonar.pullrequest.key=$PR_KEY
-Dsonar.pullrequest.branch=$PR_BRANCH
-Dsonar.pullrequest.base=main