From b24e6b225fbb63aa82ad9437ed0ece2e94b1d000 Mon Sep 17 00:00:00 2001 From: mathuo Date: Sun, 28 Mar 2021 22:30:06 +0100 Subject: [PATCH] chore: fix sonar setup --- .github/workflows/main.yml | 11 +++-------- sonar-project.properties | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b183eadc9..af647b29f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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: diff --git a/sonar-project.properties b/sonar-project.properties index 27b58d8c5..9ceed39eb 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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__