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:
Sébastien Lorber 2021-03-18 17:40:28 +01:00 committed by GitHub
parent 1135d19333
commit 3422f80a9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 243 additions and 187 deletions

View file

@ -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;
}
})();