Compare commits

..

2 commits

Author SHA1 Message Date
Eric Nguyen
161a2cfb3e Merged PR 15: Azure-Pipelines: Use pnpm to accelerate npm install command
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-08 16:12:49 +00:00
1613617c3f Added missing peer-dependency 2022-08-08 17:52:11 +02:00
3 changed files with 3626 additions and 4 deletions

View file

@ -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'

View file

@ -20,6 +20,7 @@
"react-svg-pan-zoom": "^3.11.0" "react-svg-pan-zoom": "^3.11.0"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/dom": "^8.16.1",
"@testing-library/jest-dom": "^5.16.4", "@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0", "@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.4.1", "@testing-library/user-event": "^14.4.1",

3607
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff