From e23a5b47fe77c258c1df57b341ea33756ac5fec0 Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Mon, 22 Apr 2019 10:50:18 -0700 Subject: [PATCH] Fail immediately if yarn.lock updates are needed --- azure-pipelines-template.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-template.yml b/azure-pipelines-template.yml index 734e18ff823..5ff001e5eab 100644 --- a/azure-pipelines-template.yml +++ b/azure-pipelines-template.yml @@ -36,7 +36,9 @@ jobs: cargo -V displayName: Install Rust - - script: yarn + # use `--frozen-lockfile` to fail immediately if the committed yarn.lock needs updates + # https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile + - script: yarn --frozen-lockfile displayName: 'Install dependencies' - script: yarn test-ci displayName: 'Run tests'