generated from nhcarrigan/template
feat(tools): set up sonar #1
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user