diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 5f4ea34..933c2ae 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -15,4 +15,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Lint - run: echo "Linting..." \ No newline at end of file + run: echo "Linting..." + + sonarqube: + name: SonarQube + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..11053b4 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=speedandfunction_automatization +sonar.organization=speedandfunction