mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
chore: simplify CI setup (#4447)
* improve ci * improve ci * use actions/setup-node@v2 everywhere * run pwd for test * debug gh action * debug glob CI issue? * Separate v1/v2 tests due to shell conflict * cleanup * test v1 change * circleci fix * fix test docusaurus v1 paths * Refactor CI script names and use paths to filter actions from running unnecessary * fix lighthouse url * v1 tests runInBand * try to fix v1 tests race conditions * change rootDir for v1 tests * minor CI improvements
This commit is contained in:
parent
1135d19333
commit
3422f80a9a
26 changed files with 243 additions and 187 deletions
|
@ -196,7 +196,21 @@ const onlyEnglishAndFrench = [
|
|||
},
|
||||
];
|
||||
|
||||
const onlyEnglish = [
|
||||
{
|
||||
enabled: true,
|
||||
name: 'English',
|
||||
tag: 'en',
|
||||
},
|
||||
];
|
||||
|
||||
// We want deploy previews to be fast
|
||||
module.exports = require('./netlifyUtils').isDeployPreview
|
||||
? onlyEnglishAndFrench
|
||||
: languages;
|
||||
module.exports = (function () {
|
||||
if (process.env.V1_I18N === 'false') {
|
||||
return onlyEnglish;
|
||||
} else if (require('./netlifyUtils').isDeployPreview) {
|
||||
return onlyEnglishAndFrench;
|
||||
} else {
|
||||
return languages;
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue