From e2d9f0e2d1346ab43d5c148056dd81d4d56a93f8 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 24 Jun 2019 17:48:32 +0200 Subject: [PATCH] build: fix snapshot local browsers cronjob test (#16362) The `snapshot_tests_local_browsers` job currently seems to fail because in order to run the setup snapshots script, we already need to have the `node_modules` installed. This means that we need to run Yarn twice for the cronjob. Though this shouldn't have any performance implications because we recently updated Yarn to a version that is able to properly cache/restore the `node_modules`. --- .circleci/config.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d92712511e0..a2e2eadf82e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -367,11 +367,12 @@ jobs: - *checkout_code - *restore_cache - *yarn_download + - *yarn_install - run: node ./scripts/circleci/setup-angular-snapshots.js --tag master - # Install yarn dependencies after the package.json has been updated. Note that - # we can't use frozen-lockfile since the setup snapshots script does not update - # the lock file. + # We need to re-run yarn install in order to pull the Angular snapshot builds. Note + # that we can't use the "--frozen-lockfile" option since the setup snapshots script does + # not update the lock file. - run: yarn install --non-interactive - run: ./scripts/circleci/run-local-browser-tests.sh