From b3670f91b0bda83081efedc098a6c6e063eb25d5 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 02:38:39 +0530 Subject: [PATCH 01/12] sonar and test --- .github/workflows/build.yml | 5 +++++ sonar-project.properties | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4672fc..ddd64b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,3 +42,8 @@ jobs: run: | npm run coverage + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + diff --git a/sonar-project.properties b/sonar-project.properties index 31b61ca..3eb55b6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -6,6 +6,9 @@ sonar.projectName=resizable-panes-react sonar.projectVersion=4.x sonar.exclusions=cypress/** + +sonar.javascript.lcov.reportPaths=./coverage/lcov.info + # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From 6fe79927ce60516f78f028316ef6ce2c80ba536e Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 02:46:23 +0530 Subject: [PATCH 02/12] Update sonar-project.properties --- sonar-project.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index 3eb55b6..7fa274a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,6 +9,8 @@ sonar.exclusions=cypress/** sonar.javascript.lcov.reportPaths=./coverage/lcov.info +sonar.sources=src + # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From 38e04f58f31b51da56f926ce78a7bc6dd8e02075 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 02:52:26 +0530 Subject: [PATCH 03/12] removed --- .github/workflows/build.yml | 2 +- .github/workflows/sonar.yml | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .github/workflows/sonar.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddd64b7..ea86cc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,5 +45,5 @@ jobs: - 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 }} - diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml deleted file mode 100644 index 5f896a6..0000000 --- a/.github/workflows/sonar.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Build -on: - push: - branches: - - master - pull_request: - types: [opened, synchronize, reopened] -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - 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 }} From eea9ca8d6f7e53895865e43cc7a900e7fed15068 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:00:01 +0530 Subject: [PATCH 04/12] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f8adfdb..f659b9d 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "pretest:open": "npm run test:clean", "test:open": "cypress open --component --config-file cypress.config.ts browser --browser chrome", "test": "cypress run --component --config-file cypress.config.ts browser --browser chrome", - "coverage": "nyc report --reporter=text --reporter=text-summary", + "coverage": "nyc report --lcov --reporter=text --reporter=text-summary", "posttest": "npm run coverage", "lint": "eslint ./src" }, From 5336811c4d79bb0c5f1655ec99b20ab57f9fde4b Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:06:12 +0530 Subject: [PATCH 05/12] Update sonar-project.properties --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index 7fa274a..8f8339c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,6 +10,7 @@ sonar.exclusions=cypress/** sonar.javascript.lcov.reportPaths=./coverage/lcov.info sonar.sources=src +sonar.tests = cypress/ # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From d9c38f3f9b615ad3b80bab32bdfa99bd30d6b2a7 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:18:42 +0530 Subject: [PATCH 06/12] Update sonar-project.properties --- sonar-project.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 8f8339c..9d9e516 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,10 +7,10 @@ sonar.projectVersion=4.x sonar.exclusions=cypress/** -sonar.javascript.lcov.reportPaths=./coverage/lcov.info +sonar.sources=./src +sonar.tests=./cypress/ -sonar.sources=src -sonar.tests = cypress/ +Dsonar.typescript.lcov.reportPaths=src/coverage/report/lcov.info # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From af81baceb462dc85c0ae0bff891572ea2357d470 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:25:31 +0530 Subject: [PATCH 07/12] Update sonar-project.properties --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 9d9e516..d437844 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,7 +10,7 @@ sonar.exclusions=cypress/** sonar.sources=./src sonar.tests=./cypress/ -Dsonar.typescript.lcov.reportPaths=src/coverage/report/lcov.info +Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From 5728831f653d0693a5e8579460d4f4bff19295ec Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:31:42 +0530 Subject: [PATCH 08/12] Update sonar-project.properties --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index d437844..d665986 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,6 +10,7 @@ sonar.exclusions=cypress/** sonar.sources=./src sonar.tests=./cypress/ +sonar.projectKey=resizable-panes-react Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. From 8e8b57a10b4258de1009f4b6dcfcfdd749596290 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 03:36:06 +0530 Subject: [PATCH 09/12] Update sonar-project.properties --- sonar-project.properties | 1 - 1 file changed, 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index d665986..d437844 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,7 +10,6 @@ sonar.exclusions=cypress/** sonar.sources=./src sonar.tests=./cypress/ -sonar.projectKey=resizable-panes-react Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. From c41d1e268a851002ccee6dd315bb1d30adfad258 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 11:43:02 +0530 Subject: [PATCH 10/12] Update sonar-project.properties --- sonar-project.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index d437844..a56c4ad 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,8 +10,8 @@ sonar.exclusions=cypress/** sonar.sources=./src sonar.tests=./cypress/ -Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info - +# Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info +sonar.javascript.lcov.reportPaths=./coverage/report/lcov.info # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From 39c5790354f51f3cfed594a3ca34298444753e01 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 11:51:19 +0530 Subject: [PATCH 11/12] Update sonar-project.properties --- sonar-project.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index a56c4ad..6c4e53d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,8 +10,12 @@ sonar.exclusions=cypress/** sonar.sources=./src sonar.tests=./cypress/ +sonar.scm.exclusions.disabled=true + # Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info sonar.javascript.lcov.reportPaths=./coverage/report/lcov.info + +sonar.log.level=DEBUG # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. From 43f9f9d9f9004b7fe6264548c9c5ff0ce91b19f7 Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Fri, 10 May 2024 12:09:03 +0530 Subject: [PATCH 12/12] Update sonar-project.properties --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 6c4e53d..38f5874 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,7 +13,7 @@ sonar.tests=./cypress/ sonar.scm.exclusions.disabled=true # Dsonar.typescript.lcov.reportPaths=./coverage/report/lcov.info -sonar.javascript.lcov.reportPaths=./coverage/report/lcov.info +sonar.javascript.lcov.reportPaths=coverage/report/lcov.info sonar.log.level=DEBUG # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.