From c65bc24c90fa49eea6139d0f4fed1c4ce4e44101 Mon Sep 17 00:00:00 2001 From: Houssem Ben Ali Date: Tue, 17 Dec 2024 13:44:34 +0100 Subject: [PATCH] SWF: Migration of Sonarcloud Analyse reusable workflow to exo-actions/sonarcloud-action action --- .github/workflows/build.yml | 14 -------------- .github/workflows/sonar.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/sonar.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 7ef1442954..0000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Sonar Analysis -on: - push: - branches: - - develop - pull_request: -jobs: - build: - name: Analyse Module with SonarCloud - uses: exoplatform/swf-scripts/.github/workflows/sonarcloud.yml@master - with: - jdk_major_version: 17 - secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000000..4abc4d13ec --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,15 @@ +name: Sonar Analysis +on: + push: + branches: [ stable/1.3.x-exo ] + pull_request: +jobs: + sonar-analysis: + name: Analyse Project with SonarCloud + runs-on: ubuntu-latest + steps: + - name: Analyse Project + uses: exo-actions/sonarcloud-action@v1 + with: + extra_maven_opts: "-Dsonar.projectKey=io.meeds.notes" # Backwards compatibility with Meeds-io groupID change + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file