mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-22 09:08:01 +01:00
Add React Sonar Scan
This commit is contained in:
parent
a2d92a34cb
commit
6e5cb3b9f2
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -108,11 +108,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: gh-pages # The branch the action should deploy to.
|
branch: gh-pages # The branch the action should deploy to.
|
||||||
folder: javadocs # The folder the action should deploy.
|
folder: javadocs # The folder the action should deploy.
|
||||||
- name: 🩺 SonarCloud
|
- name: 🩺 SonarCloud: Java
|
||||||
|
if: "${{ env.SONAR_TOKEN != '' }}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
if: "${{ env.SONAR_TOKEN != '' }}"
|
|
||||||
run: |
|
run: |
|
||||||
cd Plan
|
cd Plan
|
||||||
./gradlew sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=player-analytics-plan
|
./gradlew sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=player-analytics-plan
|
||||||
|
- name: 🩺 SonarCloud: React
|
||||||
|
if: "${{ env.SONAR_TOKEN != '' }}"
|
||||||
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
11
sonar-project.properties
Normal file
11
sonar-project.properties
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sonar.projectKey=plan-player-analytics_Plan
|
||||||
|
sonar.organization=player-analytics-plan
|
||||||
|
|
||||||
|
# This is the name and version displayed in the SonarCloud UI.
|
||||||
|
sonar.projectName=Plan React Code
|
||||||
|
|
||||||
|
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||||
|
sonar.sources=Plan/react/dashboard
|
||||||
|
|
||||||
|
# Encoding of the source code. Default is default system encoding
|
||||||
|
sonar.sourceEncoding=UTF-8
|
Loading…
Reference in New Issue
Block a user