mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
ci: Generate jest-junit reports only on CI (no-changelog) (#14463)
Co-authored-by: Charlie Kolb <charlie@n8n.io>
This commit is contained in:
committed by
GitHub
parent
3816ca4b41
commit
577e2777e1
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,3 +23,4 @@ CHANGELOG-*.md
|
|||||||
*.mdx
|
*.mdx
|
||||||
build-storybook.log
|
build-storybook.log
|
||||||
*.junit.xml
|
*.junit.xml
|
||||||
|
junit.xml
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ const config = {
|
|||||||
collectCoverage: isCoverageEnabled,
|
collectCoverage: isCoverageEnabled,
|
||||||
coverageReporters: ['text-summary', 'lcov', 'html-spa'],
|
coverageReporters: ['text-summary', 'lcov', 'html-spa'],
|
||||||
collectCoverageFrom: ['src/**/*.ts'],
|
collectCoverageFrom: ['src/**/*.ts'],
|
||||||
reporters: ['default', 'jest-junit'],
|
|
||||||
workerIdleMemoryLimit: '1MB',
|
workerIdleMemoryLimit: '1MB',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (process.env.CI === 'true') {
|
if (process.env.CI === 'true') {
|
||||||
|
config.reporters = ['default', 'jest-junit'];
|
||||||
config.coverageReporters = ['cobertura'];
|
config.coverageReporters = ['cobertura'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user