diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3506b2e5e..63133b7ad 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,6 +8,17 @@ on: merge_group: jobs: + sonarqube-analysis: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: SonarQube Analysis + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build-and-deploy: runs-on: ubuntu-20.04 env: diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..0c7c0800f --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=LambdaTest_documentation_AZalKzdg-ZKsnB8M0r3H \ No newline at end of file