From d1ca368c7da797f1ba872d4f7ddc79b9d0ad68b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 9 Jan 2024 16:18:20 +0100 Subject: [PATCH] ci: Fix codecov reporting, and include all packages (no-changelog) (#8276) --- .github/workflows/units-tests-reusable.yml | 2 +- jest.config.js | 2 +- packages/design-system/vite.config.mts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/units-tests-reusable.yml b/.github/workflows/units-tests-reusable.yml index 81aec86184..af33eec316 100644 --- a/.github/workflows/units-tests-reusable.yml +++ b/.github/workflows/units-tests-reusable.yml @@ -70,4 +70,4 @@ jobs: if: ${{ inputs.collectCoverage == 'true' }} uses: codecov/codecov-action@v3 with: - files: packages/@n8n/client-oauth2/coverage/cobertura-coverage.xml,packages/cli/coverage/cobertura-coverage.xml,packages/core/coverage/cobertura-coverage.xml,packages/design-system/coverage/cobertura-coverage.xml,packages/editor-ui/coverage/cobertura-coverage.xml,packages/nodes-base/coverage/cobertura-coverage.xml,packages/workflow/coverage/cobertura-coverage.xml + files: packages/@n8n/chat/coverage/cobertura-coverage.xml,packages/@n8n/nodes-langchain/coverage/cobertura-coverage.xml,packages/@n8n/permissions/coverage/cobertura-coverage.xml,packages/@n8n/client-oauth2/coverage/cobertura-coverage.xml,packages/cli/coverage/cobertura-coverage.xml,packages/core/coverage/cobertura-coverage.xml,packages/design-system/coverage/cobertura-coverage.xml,packages/editor-ui/coverage/cobertura-coverage.xml,packages/nodes-base/coverage/cobertura-coverage.xml,packages/workflow/coverage/cobertura-coverage.xml diff --git a/jest.config.js b/jest.config.js index 26cb6e53bd..f3f7824c14 100644 --- a/jest.config.js +++ b/jest.config.js @@ -31,7 +31,7 @@ const config = { }, {}), setupFilesAfterEnv: ['jest-expect-message'], collectCoverage: process.env.COVERAGE_ENABLED === 'true', - coverageReporters: [process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary'], + coverageReporters: ['text-summary'], collectCoverageFrom: ['src/**/*.ts'], }; diff --git a/packages/design-system/vite.config.mts b/packages/design-system/vite.config.mts index a8ca4559a5..7bebfbeec8 100644 --- a/packages/design-system/vite.config.mts +++ b/packages/design-system/vite.config.mts @@ -15,7 +15,7 @@ export const vitestConfig = defineVitestConfig({ coverage: { enabled: true, provider: 'v8', - reporter: process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary', + reporter: process.env.CI === 'true' ? 'cobertura' : 'text-summary', all: true, }, }