Skip to content

Commit 995e24c

Browse files
Deep Vijay PoharkarDeep Vijay Poharkar
authored andcommitted
added sonarqube analysis
1 parent d4b0c37 commit 995e24c

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.github/workflows/Algolia-crawler-stage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@ on:
1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
1515
# This workflow contains a single job called "build"
16+
sonarqube-analysis:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v2
21+
22+
- name: SonarQube Analysis
23+
uses: SonarSource/sonarqube-scan-action@master
24+
env:
25+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
26+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
1627
build:
1728
# The type of runner that the job will run on
1829
runs-on: ubuntu-latest
30+
needs: sonarqube-analysis
1931
environment: stage
2032
# Steps represent a sequence of tasks that will be executed as part of the job
2133
steps:

.github/workflows/pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,20 @@ on:
88
merge_group:
99

1010
jobs:
11+
sonarqube-analysis:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
16+
17+
- name: SonarQube Analysis
18+
uses: SonarSource/sonarqube-scan-action@master
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
1122
build-and-deploy:
1223
runs-on: ubuntu-20.04
24+
needs: sonarqube-analysis
1325
env:
1426
CI: true
1527
NODE_ENV: stage

.github/workflows/typesense-crawler-stage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,21 @@ on:
77
- stage
88

99
jobs:
10+
sonarqube-analysis:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v2
15+
16+
- name: SonarQube Analysis
17+
uses: SonarSource/sonarqube-scan-action@master
18+
env:
19+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
1021
build:
1122
# The type of runner that the job will run on
1223
runs-on: ubuntu-latest
24+
needs: sonarqube-analysis
1325
# environment: stage
1426
steps:
1527
- name: Checkout Repository

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=LambdaTest_documentation_AZalKzdg-ZKsnB8M0r3H

0 commit comments

Comments
 (0)