Skip to content

Commit 6a8fc13

Browse files
authored
Update build.yml
1 parent efd4b41 commit 6a8fc13

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
name: Build
2-
32
on:
43
push:
54
branches:
65
- main
7-
8-
6+
pull_request:
7+
types: [opened, synchronize, reopened]
98
jobs:
10-
build:
11-
name: Build and analyze
9+
sonarqube:
10+
name: SonarQube
1211
runs-on: ubuntu-latest
13-
1412
steps:
1513
- uses: actions/checkout@v4
1614
with:
1715
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18-
- uses: SonarSource/sonarqube-scan-action@v5
16+
- name: SonarQube Scan
17+
uses: SonarSource/sonarqube-scan-action@v6
1918
env:
2019
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-
# - uses: SonarSource/sonarqube-quality-gate-action@v1
25-
# timeout-minutes: 5
26-
# env:
27-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)