Re-enable cache on CI

This commit is contained in:
MrTimscampi 2020-05-07 17:08:21 +02:00
parent ca4d60c648
commit 22e1a9b269

View file

@ -33,16 +33,16 @@ jobs:
inputs:
versionSpec: '12.x'
#- task: Cache@2
# displayName: 'Check Cache'
# inputs:
# key: 'yarn | yarn.lock'
# path: 'node_modules'
# cacheHitVar: CACHE_RESTORED
- task: Cache@2
displayName: 'Check Cache'
inputs:
key: 'yarn | yarn.lock'
path: 'node_modules'
cacheHitVar: CACHE_RESTORED
- script: 'yarn install --frozen-lockfile'
displayName: 'Install Dependencies'
# condition: ne(variables.CACHE_RESTORED, 'true')
condition: ne(variables.CACHE_RESTORED, 'true')
- script: 'yarn build:development'
displayName: 'Build Development'
@ -87,16 +87,16 @@ jobs:
inputs:
versionSpec: '12.x'
#- task: Cache@2
# displayName: 'Check Cache'
# inputs:
# key: 'yarn | yarn.lock'
# path: 'node_modules'
# cacheHitVar: CACHE_RESTORED
- task: Cache@2
displayName: 'Check Cache'
inputs:
key: 'yarn | yarn.lock'
path: 'node_modules'
cacheHitVar: CACHE_RESTORED
- script: 'yarn install --frozen-lockfile'
displayName: 'Install Dependencies'
# condition: ne(variables.CACHE_RESTORED, 'true')
condition: ne(variables.CACHE_RESTORED, 'true')
- script: 'yarn run lint --quiet'
displayName: 'Run ESLint'