Skip to content

Commit cc5a930

Browse files
committed
Update ci.yml
1 parent 4838922 commit cc5a930

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.azure/pipelines/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,17 @@ stages:
661661
beforeBuild:
662662
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
663663
displayName: Setup IISExpress test certificates and schema
664+
- task: Cache@2
665+
inputs:
666+
key: 'pw | "$(Agent.OS)" | eng/versions.props'
667+
restoreKeys: |
668+
pw | "$(Agent.OS)"
669+
path: $(PLAYWRIGHT_BROWSERS_PATH)
670+
cacheHitVar: CACHE_PLAYWRIGHT_HIT
671+
displayName: Cache playwright browsers
672+
- script: npm i -D playwright
673+
condition: ne(variables['CACHE_PLAYWRIGHT_HIT'], 'true')
674+
664675
artifacts:
665676
- name: Windows_Test_Dumps
666677
path: artifacts/dumps/
@@ -738,7 +749,7 @@ stages:
738749
cacheHitVar: CACHE_PLAYWRIGHT_HIT
739750
displayName: Cache playwright browsers
740751
- script: npm i -D playwright
741-
condition: ne(variables.CACHE_PLAYWRIGHT_HIT, 'true')
752+
condition: ne(variables['CACHE_PLAYWRIGHT_HIT'], 'true')
742753

743754
# Build the shared framework
744755
- script: ./eng/build.cmd -ci -nobl -all -pack -arch x64

0 commit comments

Comments
 (0)