Skip to content

Commit e3aef97

Browse files
Sonarcloud workflow
1 parent 036090f commit e3aef97

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- develop
6+
- 'releases/**'
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
workflow_dispatch:
10+
11+
permissions:
12+
pull-requests: read
13+
14+
name: SonarCloud analysis
15+
jobs:
16+
sonarqube:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: SonarQube Scan
23+
uses: SonarSource/[email protected]
24+
env:
25+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
26+
with:
27+
projectBaseDir: .
28+
args: >
29+
-Dsonar.projectKey=ComputerDaddyGuy_JFileTreePrettyPrinter
30+
-Dsonar.organization=computerdaddyguy
31+

0 commit comments

Comments
 (0)