diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index d6eb3c2fc..000000000 --- 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: 21 - 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 000000000..2ed2fb155 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,15 @@ +name: Sonar Analysis +on: + push: + branches: [ develop, develop-exo, develop-meed ] + 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: + jdk_major_version: 21 + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file