Skip to content

Commit

Permalink
chore: add caching to azure pipelines (#8866)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 26, 2019
1 parent 6c5d96a commit 8c169d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .azure-pipelines-steps.yml
Expand Up @@ -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'

Expand Down
2 changes: 2 additions & 0 deletions .azure-pipelines.yml
Expand Up @@ -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

0 comments on commit 8c169d2

Please sign in to comment.