From aba65f0b9dac46209b0e15f4a2a2ae0a7fd9778a Mon Sep 17 00:00:00 2001 From: "Radmir.Baembitov" Date: Mon, 19 Aug 2024 10:42:17 +0200 Subject: [PATCH] set up coverage --- .github/workflows/qodana.yml | 7 ++++--- js/tests/karma.conf.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 4a03156720..d82b42572a 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -27,11 +27,12 @@ jobs: with: node-version: '16' - run: npm install + - run: npm run js-test-karma - name: 'Qodana Scan' uses: JetBrains/qodana-action@main env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - with: - pr-mode: true + pr-mode: false + push-fixes: pull-request upload-result: true - + diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index a1b96d0414..abea2e12f9 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -139,7 +139,7 @@ if (BROWSERSTACK) { reporters.push('coverage-istanbul') config.detectBrowsers = detectBrowsers config.coverageIstanbulReporter = { - dir: path.resolve(__dirname, '../coverage/'), + dir: path.resolve(__dirname, '../../.qodana/code-coverage/'), reports: ['lcov', 'text-summary'], thresholds: { emitWarning: false,