Skip to content

Commit

Permalink
Merge pull request #37 from buckaroo-it/sonarqube
Browse files Browse the repository at this point in the history
Add Sonarqube
  • Loading branch information
vildanbina authored May 13, 2024
2 parents 726186a + 0d03353 commit d4d2531
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: SonarQube Analysis

on:
push:
branches:
- master
- develop
- "releases/**"
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
name: SonarQube Analysis
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Unique key for the project
sonar.projectKey=buckaroo:sw5

# Display name and version for the SonarQube UI
sonar.projectName=Shopware5
sonar.projectVersion=1.0

# Path to the source code, relative to the sonar-project.properties file
sonar.sources=.

0 comments on commit d4d2531

Please sign in to comment.