Skip to content

Commit 495d874

Browse files
committed
chore(ci): add sonar props
1 parent d3e081a commit 495d874

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/sonar.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: sonar
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
scan:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- uses: sonarsource/sonarqube-scan-action@v6
17+
with:
18+
projectBaseDir: ${{ github.workspace }}
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sonar.projectKey=com.shell.peter-evans-create-pull-request-v7
2+
3+
sonar.javascript.lcov.reportPaths=coverage/lcov.info
4+
sonar.sources=src

0 commit comments

Comments
 (0)