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

View File

@ -27,8 +27,17 @@ jobs:
- run: npm run bootstrap
- run: npm run build
- run: npm run test:cov
- name: SonarCloud Scan
- name: SonarCloud Scan 1
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/

32
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,32 @@
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

@ -0,0 +1,27 @@
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

@ -0,0 +1,27 @@
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

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