mirror of
https://github.com/mathuo/dockview
synced 2025-03-09 23:42:05 +00:00
chore: fix sonar line coverage
This commit is contained in:
parent
5ee487f110
commit
6d5f3e5975
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -27,17 +27,8 @@ jobs:
|
|||||||
- run: npm run bootstrap
|
- run: npm run bootstrap
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run test:cov
|
- run: npm run test:cov
|
||||||
- name: SonarCloud Scan 1
|
- name: SonarCloud Scan
|
||||||
uses: SonarSource/sonarcloud-github-action@master
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
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/
|
|
||||||
|
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
@ -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/
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
|||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"rootDir": "src"
|
"rootDir": "src"
|
||||||
},
|
},
|
||||||
"references": [
|
"paths": {
|
||||||
{ "dockview-core": "../dockview-core" }
|
"dockview-core": "../dockview-core"
|
||||||
],
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["**/node_modules", "src/__tests__"]
|
"exclude": ["**/node_modules", "src/__tests__"]
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,3 @@ sonar.sources=packages
|
|||||||
|
|
||||||
# Encoding of the source code. Default is default system encoding
|
# Encoding of the source code. Default is default system encoding
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
||||||
|
|
||||||
sonar.verbose=true
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user