File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1313# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414jobs :
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 :
Original file line number Diff line number Diff line change 88 merge_group :
99
1010jobs :
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
Original file line number Diff line number Diff line change 77 - stage
88
99jobs :
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
Original file line number Diff line number Diff line change 1+ sonar.projectKey =LambdaTest_documentation_AZalKzdg-ZKsnB8M0r3H
You can’t perform that action at this time.
0 commit comments