Skip to content

Commit eadd9f5

Browse files
chore(sonar): add SonarQube analysis workflow
1 parent 87b2014 commit eadd9f5

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: SonarQube
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
- develop
9+
pull_request:
10+
types: [opened, synchronize, reopened]
11+
12+
jobs:
13+
sonarqube:
14+
name: SonarQube Scan
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # required for proper blame info
20+
21+
- name: SonarQube Scan
22+
uses: SonarSource/sonarqube-scan-action@v5
23+
env:
24+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
25+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 commit comments

Comments
 (0)