From 21166bd13e324bdca706d61885f6b31e350bc5a7 Mon Sep 17 00:00:00 2001 From: MickaelMenet Date: Mon, 3 Apr 2023 14:09:41 +0200 Subject: [PATCH 1/3] feat: add sonar on production branches --- .github/workflows/sonar.yml | 24 ++++++++++++++++++++++++ sonar-project.properties | 12 ++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/sonar.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 00000000..450351d7 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,24 @@ +name: Sonar analysis +on: + push: + branches: + - v2-develop + - v2-master + - v3-master + - v3-develop + - feat/addSonar + 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/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 From fcb5f287f095f5ba2351622040eb919b809056c8 Mon Sep 17 00:00:00 2001 From: MickaelMenet Date: Tue, 4 Apr 2023 11:07:39 +0200 Subject: [PATCH 2/3] fix: delete self feature branch scan --- .github/workflows/sonar.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 450351d7..4d28bb1b 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -6,7 +6,6 @@ on: - v2-master - v3-master - v3-develop - - feat/addSonar pull_request: types: [opened, synchronize, reopened] jobs: From 318b8fff0013315540a60d647e324a1a38902c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oph=C3=A9lie=20Bibonne?= <59668260+ORogel@users.noreply.github.com> Date: Thu, 6 Apr 2023 08:33:00 +0200 Subject: [PATCH 3/3] build: upgrade version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",