Skip to content

Commit

Permalink
ci: azure-pipelines cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 12, 2019
1 parent a39eb0b commit 01906b7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn

jobs:
- job: basic
pool:
Expand All @@ -16,6 +19,11 @@ jobs:
node -v
yarn -v
displayName: "Print versions"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand Down Expand Up @@ -61,6 +69,11 @@ jobs:
node -v
yarn -v
displayName: "Print versions"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand Down Expand Up @@ -112,6 +125,11 @@ jobs:
node -v
yarn -v
displayName: "Print versions"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand Down Expand Up @@ -160,6 +178,11 @@ jobs:
node -v
yarn -v
displayName: "Print versions"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Expand Down Expand Up @@ -206,6 +229,11 @@ jobs:
node -v
yarn -v
displayName: "Print versions"
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: |
yarn --frozen-lockfile
yarn link --frozen-lockfile || true
Expand Down

0 comments on commit 01906b7

Please sign in to comment.