From 116eb629ab67567622dc0fc2996c80e901c2a01f Mon Sep 17 00:00:00 2001 From: Weronika Olejniczak Date: Fri, 10 May 2024 21:25:27 +0200 Subject: [PATCH] chore: configure sonarcloud --- .github/workflows/analyse-code-quality.yml | 18 ++++++++++++++++++ sonar-project.properties | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/analyse-code-quality.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/analyse-code-quality.yml b/.github/workflows/analyse-code-quality.yml new file mode 100644 index 00000000..4f15c77c --- /dev/null +++ b/.github/workflows/analyse-code-quality.yml @@ -0,0 +1,18 @@ +name: Analyse code quality +on: + push: + branches: + - main +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + 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..3b02e736 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=travellan_travellan +sonar.organization=travellan + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=travellan +#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