generated from nhcarrigan/template
30 lines
775 B
YAML
30 lines
775 B
YAML
name: Code Analysis
|
|
on:
|
|
pull_request:
|
|
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"
|
|
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
|