Skip to content

Commit 0e9239d

Browse files
committed
Revert "Added "Generate .env" step after "Use Node.js" and removed the old "Create .env file" step"
This reverts commit 21653b4.
1 parent f151b41 commit 0e9239d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

build/azure-pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,18 @@ stages:
327327
URL=$(testSiteUrl)" | Out-File .env
328328
displayName: Generate .env
329329
workingDirectory: $(acceptanceTestPath)
330+
# Cache npm packages
331+
- script: mkdir -p $(npm_config_cache_e2e)
332+
displayName: Create npm cache directory
333+
334+
- task: Cache@2
335+
displayName: Cache npm packages
336+
inputs:
337+
key: '"npm_e2e" | "$(Agent.OS)" | src/Umbraco.Test.Search.AcceptanceTest/package-lock.json'
338+
restoreKeys: |
339+
"npm_e2e" | "$(Agent.OS)"
340+
"npm_e2e"
341+
path: $(npm_config_cache_e2e)
330342

331343
# Install acceptance test dependencies
332344
- script: npm ci --no-fund --no-audit

0 commit comments

Comments
 (0)