From 9920186b0a41f2a08aa524756c6010a55b5ec981 Mon Sep 17 00:00:00 2001 From: Sergio Gutierrez Villalba Date: Thu, 23 Nov 2023 15:50:42 +0100 Subject: [PATCH] ci: switch completely to SonarCloud --- .github/workflows/code-coverage.yml | 33 ----------------------------- sonar-project.properties | 4 +++- 2 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/code-coverage.yml diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml deleted file mode 100644 index f9f5dd2a..00000000 --- a/.github/workflows/code-coverage.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Code coverage -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - - steps: - - name: Check Out Repo - uses: actions/checkout@v2 - - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: yarn --ignore-engines - - - name: Run tests - run: yarn run test:cov - - - name: Codecov - uses: codecov/codecov-action@v3.1.0 diff --git a/sonar-project.properties b/sonar-project.properties index 18a88656..0c11fd4d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,4 +13,6 @@ sonar.organization=internxt #sonar.sourceEncoding=UTF-8 # This parameter must be set to the path of the report file produced by your coverage tool. The path can be either absolute or relative to the project root. -sonar.javascript.lcov.reportPaths=./coverage/lcov.info \ No newline at end of file +sonar.javascript.lcov.reportPaths=./coverage/lcov.info +sonar.coverage.exclusions=**/*.test.ts +sonar.cpd.exclusions=**/*.test.ts