Chore: Migrate yarn from v1 to v2 (#39082)

* Chore: Migrate yarn from v1 to v2

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
kay delaney
2021-10-08 15:19:10 +01:00
committed by GitHub
parent 1b2a1a9621
commit b2e94d0733
41 changed files with 34840 additions and 24788 deletions

View File

@@ -62,7 +62,7 @@ def initialize_step(edition, platform, ver_mode, is_downstream=False, install_de
if install_deps:
common_cmds.extend([
'yarn install --frozen-lockfile --no-progress',
'yarn install --immutable',
])
if edition in ('enterprise', 'enterprise2'):
source_commit = ''
@@ -427,7 +427,7 @@ def test_a11y_frontend_step(edition, port=3001):
'failure': 'ignore',
'commands': [
'yarn wait-on http://$HOST:$PORT',
'yarn -s test:accessibility --json > pa11y-ci-results.json',
'yarn run test:accessibility --json > pa11y-ci-results.json',
],
}
@@ -446,7 +446,7 @@ def test_a11y_frontend_step_pr(edition, port=3001):
'failure': 'ignore',
'commands': [
'yarn wait-on http://$HOST:$PORT',
'yarn -s test:accessibility-pr',
'yarn run test:accessibility-pr',
],
}
@@ -632,7 +632,7 @@ def e2e_tests_step(edition, port=3001, tries=None):
'commands': [
# Have to re-install Cypress since it insists on searching for its binary beneath /root/.cache,
# even though the Yarn cache directory is beneath /usr/local/share somewhere
'./node_modules/.bin/cypress install',
'yarn run cypress install',
cmd,
],
}