Skip to content

Commit d80c037

Browse files
committed
add github-action sonarcloud-analysis
1 parent a81fd90 commit d80c037

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
# Trigger analysis when pushing in master or pull requests, and when creating
3+
# a pull request.
4+
push:
5+
branches:
6+
- master
7+
name: Main Workflow
8+
jobs:
9+
sonarcloud:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
# Disabling shallow clone is recommended for improving relevancy of reporting
15+
fetch-depth: 0
16+
- name: SonarCloud Scan
17+
uses: sonarsource/sonarcloud-github-action@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)