Merge pull request #268 from Zagrios/chore/add-snarcloud-action

[chore] add sonarcloud action
This commit is contained in:
MathieuG-P
2023-07-01 15:22:14 +02:00
committed by GitHub
2 changed files with 23 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+3
View File
@@ -0,0 +1,3 @@
sonar.projectKey=Zagrios_bs-manager
sonar.organization=zagrios
sonar.projectName=bs-manager