chore: fix sonar line coverage

This commit is contained in:
mathuo 2023-03-13 19:24:00 +03:00
parent 5ee487f110
commit 6d5f3e5975
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
6 changed files with 4 additions and 102 deletions

View File

@ -27,17 +27,8 @@ jobs:
- run: npm run bootstrap
- run: npm run build
- run: npm run test:cov
- name: SonarCloud Scan 1
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: packages/dockview-core/
- name: SonarCloud Scan 2
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: packages/dockview/

View File

@ -1,32 +0,0 @@
name: My Test Monorepo Project
on: [push]
jobs:
sonarcloudScan1:
name: SonarCloudScan1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: packages/dockview-core/
sonarcloudScan2:
name: SonarCloudScan2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: packages/dockview/

View File

@ -1,27 +0,0 @@
sonar.projectKey=mathuo_dockview
sonar.organization=dockview
# Define the same root directory for sources and tests
sonar.sources = src/
sonar.tests = src/
# Include test subdirectories in test scope
sonar.test.inclusions = src/__tests__/**/*
# Exclude test subdirectories from source scope
sonar.exclusions = src/__tests__/**/*
# sonar.testExecutionReportPaths=test-report.xml
# sonar.javascript.lcov.reportPaths=coverage/lcov.info
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=dockview
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# sonar.sources=packages
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

View File

@ -1,27 +0,0 @@
sonar.projectKey=mathuo_dockview
sonar.organization=dockview
# Define the same root directory for sources and tests
sonar.sources = src/
sonar.tests = src/
# Include test subdirectories in test scope
sonar.test.inclusions = src/__tests__/**/*
# Exclude test subdirectories from source scope
sonar.exclusions = src/__tests__/**/*
# sonar.testExecutionReportPaths=test-report.xml
# sonar.javascript.lcov.reportPaths=coverage/lcov.info
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=dockview
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# sonar.sources=packages
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

View File

@ -6,9 +6,9 @@
"jsx": "react",
"rootDir": "src"
},
"references": [
{ "dockview-core": "../dockview-core" }
],
"paths": {
"dockview-core": "../dockview-core"
},
"include": ["src"],
"exclude": ["**/node_modules", "src/__tests__"]
}

View File

@ -17,6 +17,3 @@ sonar.sources=packages
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
sonar.verbose=true