Skip to content

Commit

Permalink
Merge pull request #89 from BipanKishore/sonar-and-test
Browse files Browse the repository at this point in the history
sonar and test
  • Loading branch information
BipanKishore authored May 10, 2024
2 parents 26ab1dc + 43f9f9d commit d0e749a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ jobs:
run: |
npm run coverage
- 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 }}
20 changes: 0 additions & 20 deletions .github/workflows/sonar.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ sonar.projectName=resizable-panes-react
sonar.projectVersion=4.x

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=.

Expand Down

0 comments on commit d0e749a

Please sign in to comment.