From c3ccc903070d08fc6f54d1948c810623db367cc2 Mon Sep 17 00:00:00 2001 From: Jose Emilio Labra Gayo Date: Sun, 21 Jan 2024 12:06:34 +0100 Subject: [PATCH] Updated sonar --- .github/workflows/build.yml | 20 ++++++++++++++++++++ sonar-project.properties | 11 ++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2862b6ad --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build +on: + push: + branches: + - master + 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 index abec6f90..48efd48e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,12 @@ -sonar.organization=pglez82 -sonar.host.url=https://sonarcloud.io -sonar.projectKey=pglez82_asw2324_0 +sonar.projectKey=Arquisoft_wiq_0 +sonar.organization=arquisoft + +# This is the name and version displayed in the SonarCloud UI. +sonar.projectName=wiq_0 +sonar.projectVersion=1.0 +# Encoding of the source code. Default is default system encoding +sonar.host.url=https://sonarcloud.io sonar.language=js sonar.projectName=asw2324_0