diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdb4452d..20df044b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,7 @@ jobs: with: jvm: temurin:1.17 apps: mill - - run: mill mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources - + - run: mill mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources unit-tests: strategy: matrix: @@ -93,4 +92,11 @@ jobs: uses: codecov/codecov-action@v3 with: directory: reports - flags: ${{ matrix.os }} \ No newline at end of file + flags: ${{ matrix.os }} + + - 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 }} + diff --git a/sonar-project.properties b/sonar-project.properties index a88ae862..f02db0a0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,3 +1,7 @@ +sonar.projectKey=markehammons_slinc +sonar.organization=scalable-solutions +sonar.projectName=slinc + sonar.scala.version=3 core.sonar.projectBaseDir=core core.sonar.sources=src/