Skip to content

Commit 1d8f246

Browse files
Update build.yml
1 parent c47b5bd commit 1d8f246

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
name: SonarQube analysis
2-
1+
name: SQC Analysis
32
on:
43
push:
54
branches:
65
- main
6+
- dev
77
pull_request:
88
types: [opened, synchronize, reopened]
9-
109
jobs:
11-
build:
12-
name: Build and Analyze with SonarQube
10+
sonarqube:
11+
name: SonarQube
1312
runs-on: ubuntu-latest
1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1615
with:
17-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18-
- uses: sonarsource/sonarqube-scan-action@master
19-
env:
16+
fetch-depth: 0
17+
- name: SonarQubeScan
18+
uses: SonarSource/sonarqube-scan-action@v4
19+
env:
2020
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
22-
# If you wish to fail your job when the Quality Gate is red, uncomment the
23-
# following lines. This would typically be used to fail a deployment.
24-
# We do not recommend to use this in a pull request. Prefer using pull request
25-
# decoration instead.
26-
# - uses: sonarsource/sonarqube-quality-gate-action@master
27-
# timeout-minutes: 5
28-
# env:
29-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)