diff --git a/.github/workflows/code-test.yml b/.github/workflows/code-test.yml index 1d3ef27..a441033 100644 --- a/.github/workflows/code-test.yml +++ b/.github/workflows/code-test.yml @@ -37,6 +37,12 @@ jobs: - name: Run Unit Tests run: just unit-test + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@v3.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + validate-schema: name: Validate Schema runs-on: ubuntu-latest diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..6b89251 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,7 @@ +sonar.organization=jackplowman +sonar.projectKey=JackPlowman_github-stats-analyser + +sonar.sources=. + +sonar.python.version=3.12 +sonar.python.coverage.reportPaths=coverage.xml