Merged PR 15: Azure-Pipelines: Use pnpm to accelerate npm install command
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1613617c3f
commit
161a2cfb3e
1 changed files with 18 additions and 4 deletions
|
@ -11,7 +11,21 @@ trigger:
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
pnpm_config_cache: $(Pipeline.Workspace)/.pnpm-store
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- task: Cache@2
|
||||||
|
inputs:
|
||||||
|
key: 'pnpm | "$(Agent.OS)" | pnpm-lock.yaml'
|
||||||
|
path: $(pnpm_config_cache)
|
||||||
|
displayName: Cache pnpm
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
|
||||||
|
pnpm config set store-dir $(pnpm_config_cache)
|
||||||
|
displayName: "Setup pnpm"
|
||||||
|
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '16.x'
|
versionSpec: '16.x'
|
||||||
|
@ -21,8 +35,8 @@ steps:
|
||||||
node --version
|
node --version
|
||||||
node ./test-server/node-http.js &
|
node ./test-server/node-http.js &
|
||||||
jobs
|
jobs
|
||||||
npm ci
|
pnpm i
|
||||||
npm run test:nowatch
|
pnpm run test:nowatch
|
||||||
kill -2 %1 2>/dev/null
|
kill -2 %1 2>/dev/null
|
||||||
displayName: 'Test on Node.js 16.x LTS'
|
displayName: 'Test on Node.js 16.x LTS'
|
||||||
|
|
||||||
|
@ -35,7 +49,7 @@ steps:
|
||||||
node --version
|
node --version
|
||||||
node ./test-server/node-http.js &
|
node ./test-server/node-http.js &
|
||||||
jobs
|
jobs
|
||||||
npm ci
|
pnpm i
|
||||||
npm run test:nowatch
|
pnpm run test:nowatch
|
||||||
kill -2 %1 2>/dev/null
|
kill -2 %1 2>/dev/null
|
||||||
displayName: 'Test on Node.js 18.x Latest'
|
displayName: 'Test on Node.js 18.x Latest'
|
Loading…
Add table
Add a link
Reference in a new issue