From 8c169d20add61c8831162d8347d2710c07b6b0ef Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 26 Aug 2019 12:05:49 +0200 Subject: [PATCH] chore: add caching to azure pipelines (#8866) --- .azure-pipelines-steps.yml | 6 ++++++ .azure-pipelines.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.azure-pipelines-steps.yml b/.azure-pipelines-steps.yml index 56f25e676cf8..f672e789dfca 100644 --- a/.azure-pipelines-steps.yml +++ b/.azure-pipelines-steps.yml @@ -22,6 +22,12 @@ steps: - script: node scripts/remove-postinstall displayName: 'Remove postinstall script' + - task: CacheBeta@0 + inputs: + key: yarn | $(Agent.OS) | yarn.lock + path: $(YARN_CACHE_FOLDER) + displayName: Cache Yarn packages + - script: yarn --no-progress --frozen-lockfile displayName: 'Install dependencies' diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 6bf1e00454ab..aedf9b8cb3cf 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -34,3 +34,5 @@ variables: # Ensures the handful of tests that should be skipped during CI are CI: true + + YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn