From 75e5b67c0aa51be2c50d600c1e4ce24402a42691 Mon Sep 17 00:00:00 2001 From: DanielRogs Date: Mon, 10 Jun 2024 22:33:02 -0300 Subject: [PATCH 1/4] chore: configurando sonarCloud --- .github/workflows/build.yml | 21 +++++++++++++++++++++ sonar-project.properties | 13 +++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b598812 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build +on: + push: + branches: + - main + - 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/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..9842dd4 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=pi1-2024-ChicoLiro_ChicoLiro-Software-Back +sonar.organization=pi1-2024-chicoliro + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=ChicoLiro-Software-Back +#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 c8e9198a4c94b2938ce57b4ba35a2c97872f0506 Mon Sep 17 00:00:00 2001 From: DanielRogs Date: Mon, 10 Jun 2024 22:49:25 -0300 Subject: [PATCH 2/4] chore: configuracao do sonarCloud --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b598812..a69b5b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,6 @@ name: Build on: push: branches: - - main - develop pull_request: types: [opened, synchronize, reopened] From 16cca482340a44b68e23f21189ad13dbceb3b753 Mon Sep 17 00:00:00 2001 From: DanielRogs Date: Mon, 10 Jun 2024 22:52:24 -0300 Subject: [PATCH 3/4] chore: configuracao do sonarCloud --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a69b5b3..1c1ca34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: branches: - - develop + - feature/sonarCloud pull_request: types: [opened, synchronize, reopened] jobs: From 506bf6cc3fdcc0b0fdd533cf7aad2524136555b2 Mon Sep 17 00:00:00 2001 From: DanielRogs Date: Mon, 10 Jun 2024 23:01:53 -0300 Subject: [PATCH 4/4] chore: configuracao do sonarCloud --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c1ca34..b598812 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,8 @@ name: Build on: push: branches: - - feature/sonarCloud + - main + - develop pull_request: types: [opened, synchronize, reopened] jobs: