Compare commits

...

3 commits

Author SHA1 Message Date
900e925531 Add pnpm to drone.yml
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-08 18:15:56 +02:00
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
4 changed files with 3632 additions and 8 deletions

View file

@ -6,9 +6,10 @@ steps:
- name: test
image: node:16
commands:
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
- node ./test-server/node-http.js &
- npm install
- npm run test:nowatch
- pnpm install
- pnpm run test:nowatch
---
kind: pipeline
@ -18,6 +19,7 @@ steps:
- name: test
image: node
commands:
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
- node ./test-server/node-http.js &
- npm install
- npm run test:nowatch
- pnpm install
- pnpm run test:nowatch

View file

@ -11,7 +11,21 @@ trigger:
pool:
vmImage: ubuntu-latest
variables:
pnpm_config_cache: $(Pipeline.Workspace)/.pnpm-store
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
inputs:
versionSpec: '16.x'
@ -21,8 +35,8 @@ steps:
node --version
node ./test-server/node-http.js &
jobs
npm ci
npm run test:nowatch
pnpm i
pnpm run test:nowatch
kill -2 %1 2>/dev/null
displayName: 'Test on Node.js 16.x LTS'
@ -35,7 +49,7 @@ steps:
node --version
node ./test-server/node-http.js &
jobs
npm ci
npm run test:nowatch
pnpm i
pnpm run test:nowatch
kill -2 %1 2>/dev/null
displayName: 'Test on Node.js 18.x Latest'

View file

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

3607
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff