From ef942b956e18df3bb60e5156a1879eeec964622b Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sun, 4 Apr 2021 01:35:02 +0200 Subject: [PATCH] Use sonarcloud --- .github/workflows/tests.yml | 11 ++++++ .idea/runConfigurations/Sonarqube.xml | 5 +++ README.md | 6 +++- build.gradle.kts | 16 +++------ docker-compose-sonar.yml | 48 --------------------------- gradle.properties | 6 ++-- 6 files changed, 28 insertions(+), 64 deletions(-) delete mode 100644 docker-compose-sonar.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5281b1e..1eb8c3d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -101,6 +101,17 @@ jobs: arguments: coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: Cache SonarCloud packages + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Build and analyze + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: ./gradlew build sonarqube --info lint: needs: build diff --git a/.idea/runConfigurations/Sonarqube.xml b/.idea/runConfigurations/Sonarqube.xml index af093fa..a186b8b 100644 --- a/.idea/runConfigurations/Sonarqube.xml +++ b/.idea/runConfigurations/Sonarqube.xml @@ -1,6 +1,11 @@ +