diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 00000000..4d28bb1b --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,23 @@ +name: Sonar analysis +on: + push: + branches: + - v2-develop + - v2-master + - v3-master + - v3-develop + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - 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 }} \ No newline at end of file diff --git a/package.json b/package.json index 71142532..085a04ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stromae", - "version": "2.3.1", + "version": "2.3.2", "description": "Web application for the management of questionnaires powered by Lunatic", "repository": { "type": "git", diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..acebdea2 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=InseeFr_Stromae +sonar.organization=inseefr + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=Public-Enemy +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 \ No newline at end of file