Skip to content

Commit 0f0f38b

Browse files
committed
chore(ci): add sonar props
1 parent d3e081a commit 0f0f38b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/sonar.yml

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