ci: Improve CI performance (no-changelog) (#7637)

1. Split backend and frontend tests to avoid them running in parallel
2. Enable coverage only on `master`
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-11-07 14:19:39 +01:00
committed by GitHub
parent f748de9567
commit 2f665683fc
8 changed files with 46 additions and 44 deletions

View File

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