From 135645f073cc05fa6cf05533c8ee873985403489 Mon Sep 17 00:00:00 2001 From: rm-gp Date: Mon, 5 Feb 2024 17:43:39 +0000 Subject: [PATCH] Add sonarcloud integration components --- .github/workflows/.ci_cd.yaml | 9 +++++++++ sonar-project.properties | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/.ci_cd.yaml b/.github/workflows/.ci_cd.yaml index a9fea62..cdb389b 100644 --- a/.github/workflows/.ci_cd.yaml +++ b/.github/workflows/.ci_cd.yaml @@ -1,6 +1,15 @@ name: CI/CD on: push jobs: + test: + runs-on: self-hosted + steps: + - uses: actions/checkout@v2 + - name: Run SonarCloud + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build: runs-on: self-hosted # if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..1989d9c --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,8 @@ +sonar.projectName=zxcvbn +sonar.projectKey=gympass_zxcvbn +sonar.organization=gympass +sonar.projectVersion=1.0 +sonar.host.url=https://sonarcloud.io +sonar.links.homepage=https://sonarcloud.io/project/overview?id=gympass_zxcvbn + +sonar.sources=. \ No newline at end of file