mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-02 11:37:42 +00:00
Create SonarCloud.yml
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: SonarCloud analysis
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
|
||||
|
||||
jobs:
|
||||
Analysis:
|
||||
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: Analyze with SonarCloud
|
||||
uses: SonarSource/sonarcloud-github-action@v2.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN
|
||||
with:
|
||||
# Additional arguments for the SonarScanner CLI
|
||||
args: >
|
||||
-Dsonar.projectKey=mihakralj_QuanTAlib
|
||||
-Dsonar.organization=mihakralj
|
||||
-Dsonar.sources=.
|
||||
-Dsonar.verbose=false
|
||||
Reference in New Issue
Block a user