Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Overhaul for speed 🚀 (#27180)
* Use a parallel CI workflow * Restructure CI config with references * Inline CircleCI test runners * Report eslint results * Use js for jest config * Persist Jest caches between builds * Better git caching * Cache node_modules * Reenable tests and further split * Run integration nightly * Remove CI splitting for non-parallel jobs * Test results by directory not filename * Try timings again with cache-bust * Add 2m timeout to Jest I've observed a hung test suite that waited the default 10 minutes. Let's ensure that doesn't happen again. * Add docs describing the cache mechanisms * Replace CircleCI v1 notify with explicit curl
- Loading branch information
Showing
14 changed files
with
393 additions
and
194 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** @format */ | ||
|
||
module.exports = { | ||
moduleNameMapper: { | ||
'^config$': '<rootDir>/server/config/index.js', | ||
}, | ||
transform: { | ||
'^.+\\.jsx?$': 'babel-jest', | ||
'\\.(svg|(sc|sa|c)ss)$': '<rootDir>/test/test/helpers/assets/transform.js', | ||
}, | ||
modulePaths: [ '<rootDir>/test/', '<rootDir>/client/', '<rootDir>/client/extensions/' ], | ||
rootDir: './../../', | ||
roots: [ '<rootDir>/client/' ], | ||
testEnvironment: 'node', | ||
transformIgnorePatterns: [ 'node_modules[\\/\\\\](?!flag-icon-css|redux-form)' ], | ||
testMatch: [ '<rootDir>/client/**/test/*.js?(x)' ], | ||
testURL: 'https://example.com', | ||
setupTestFrameworkScriptFile: '<rootDir>/test/client/setup-test-framework.js', | ||
verbose: false, | ||
globals: { | ||
google: {}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
/** @format */ | ||
/** | ||
* External dependencies | ||
*/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** @format */ | ||
|
||
module.exports = { | ||
modulePaths: [ | ||
'<rootDir>/test/', | ||
'<rootDir>/server/', | ||
'<rootDir>/client/', | ||
'<rootDir>/client/extensions/', | ||
], | ||
rootDir: './../../', | ||
testEnvironment: 'node', | ||
testMatch: [ | ||
'<rootDir>/bin/**/integration/*.js', | ||
'<rootDir>/client/**/integration/*.js', | ||
'<rootDir>/server/**/integration/*.js', | ||
'<rootDir>/test/test/helpers/**/integration/*.js', | ||
], | ||
verbose: false, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @format */ | ||
|
||
module.exports = { | ||
collectCoverageFrom: [ 'server/**/*.js?(x)' ], | ||
coveragePathIgnorePatterns: [ '<rootDir>/server/devdocs/search-index.js' ], | ||
modulePaths: [ | ||
'<rootDir>/test/', | ||
'<rootDir>/server/', | ||
'<rootDir>/client/', | ||
'<rootDir>/client/extensions/', | ||
], | ||
rootDir: './../../', | ||
roots: [ '<rootDir>/server/' ], | ||
testEnvironment: 'node', | ||
transformIgnorePatterns: [ 'node_modules[\\/\\\\](?!redux-form)' ], | ||
testMatch: [ '<rootDir>/server/**/test/*.js?(x)' ], | ||
timers: 'fake', | ||
setupTestFrameworkScriptFile: '<rootDir>/test/server/setup-test-framework.js', | ||
verbose: false, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/** @format */ | ||
/** | ||
* External dependencies | ||
*/ | ||
|