diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 60995ac..0e0f7ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - uses: actions/setup-java@v4 with: distribution: 'temurin' @@ -16,3 +18,7 @@ jobs: run: ./build.sh - name: run the tests run: ./runtests.sh org.lensunit.AllTests + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v4 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}