mirror of
https://github.com/mathuo/dockview
synced 2025-09-01 15:06:25 +00:00
test
This commit is contained in:
parent
d60b4c6ba2
commit
5ee487f110
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -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
32
.github/workflows/test.yml
vendored
Normal 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/
|
27
packages/dockview-core/sonar-project.properties
Normal file
27
packages/dockview-core/sonar-project.properties
Normal 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
|
||||
|
||||
|
27
packages/dockview/sonar-project.properties
Normal file
27
packages/dockview/sonar-project.properties
Normal 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
|
||||
|
||||
|
@ -18,3 +18,5 @@ sonar.sources=packages
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
sonar.sourceEncoding=UTF-8
|
||||
|
||||
sonar.verbose=true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user