Skip to content

Commit

Permalink
chore: fix sonar setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Mar 28, 2021
1 parent 581e5be commit b24e6b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:

steps:
- uses: actions/checkout@v2

# might be required for sonar to work correctly
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Use Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -25,13 +27,6 @@ jobs:
- run: npm run bootstrap
- run: npm run build
- run: npm run test:cov
- run: npm run codecov-publish
env:
CI: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# - uses: actions/checkout@v2
# 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:
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectKey=mathuo_dockview
sonar.organization=dockview

sonar.inclusions=packages/dockview/**/*
sonar.inclusions=packages/dockview/src/**/*
sonar.exclusions=packages/dockview/src/__tests__/**
sonar.tests=packages/dockview/src/__tests__

Expand Down

0 comments on commit b24e6b2

Please sign in to comment.