ci: Fix codecov reporting, and include all packages (no-changelog) (#8276)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-01-09 16:18:20 +01:00 committed by GitHub
parent 5032bf0e34
commit d1ca368c7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -70,4 +70,4 @@ jobs:
if: ${{ inputs.collectCoverage == 'true' }} if: ${{ inputs.collectCoverage == 'true' }}
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: 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

View file

@ -31,7 +31,7 @@ const config = {
}, {}), }, {}),
setupFilesAfterEnv: ['jest-expect-message'], setupFilesAfterEnv: ['jest-expect-message'],
collectCoverage: process.env.COVERAGE_ENABLED === 'true', collectCoverage: process.env.COVERAGE_ENABLED === 'true',
coverageReporters: [process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary'], coverageReporters: ['text-summary'],
collectCoverageFrom: ['src/**/*.ts'], collectCoverageFrom: ['src/**/*.ts'],
}; };

View file

@ -15,7 +15,7 @@ export const vitestConfig = defineVitestConfig({
coverage: { coverage: {
enabled: true, enabled: true,
provider: 'v8', provider: 'v8',
reporter: process.env.COVERAGE_REPORT === 'true' ? 'text' : 'text-summary', reporter: process.env.CI === 'true' ? 'cobertura' : 'text-summary',
all: true, all: true,
}, },
} }