Skip to content

Commit 41901a6

Browse files
authored
Merge pull request #10 from smallstack/add-sonarcloud
2 parents 1752e28 + bac4300 commit 41901a6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/continuous-testing.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ jobs:
3333
uses: codecov/test-results-action@v1
3434
with:
3535
token: ${{ secrets.CODECOV_TOKEN }}
36+
- name: SonarCloud Scan
37+
uses: SonarSource/sonarcloud-github-action@master
38+
env:
39+
SONAR_TOKEN: ${{ secrets. SONARCLOUD_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

sonar-project.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sonar.projectKey=smallstack_utils
2+
sonar.organization=smallstack
3+
4+
# This is the name and version displayed in the SonarCloud UI.
5+
sonar.projectName=utils
6+
#sonar.projectVersion=1.0
7+
8+
9+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
sonar.sources=lib
11+
12+
# Encoding of the source code. Default is default system encoding
13+
#sonar.sourceEncoding=UTF-8
14+
15+
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 commit comments

Comments
 (0)