chore(ci): add sonar props
This commit is contained in:
parent
d3e081a03a
commit
495d8741ae
21
.github/workflows/sonar.yml
vendored
Normal file
21
.github/workflows/sonar.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: sonar
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: sonarsource/sonarqube-scan-action@v6
|
||||
with:
|
||||
projectBaseDir: ${{ github.workspace }}
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
4
sonar-project.properties
Normal file
4
sonar-project.properties
Normal file
@ -0,0 +1,4 @@
|
||||
sonar.projectKey=com.shell.peter-evans-create-pull-request-v7
|
||||
|
||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
sonar.sources=src
|
||||
Loading…
x
Reference in New Issue
Block a user