Merged PR 10: Set up CI with Azure Pipelines
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
49a558589c
commit
60247d6f45
3 changed files with 28 additions and 2 deletions
|
@ -8,7 +8,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- node ./test-server/node-http.js &
|
- node ./test-server/node-http.js &
|
||||||
- npm install
|
- npm install
|
||||||
- npm test
|
- npm run test:nowatch
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -20,4 +20,4 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- node ./test-server/node-http.js &
|
- node ./test-server/node-http.js &
|
||||||
- npm install
|
- npm install
|
||||||
- npm test
|
- npm run test:nowatch
|
25
azure-pipelines.yml
Normal file
25
azure-pipelines.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Node.js with React
|
||||||
|
# Build a Node.js project that uses React.
|
||||||
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
||||||
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
- master
|
||||||
|
- dev
|
||||||
|
- dev*
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '16.x'
|
||||||
|
displayName: 'Install Node.js'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
node --version
|
||||||
|
node ./test-server/node-http.js &
|
||||||
|
npm install
|
||||||
|
npm run test:nowatch
|
||||||
|
displayName: 'npm install and test'
|
|
@ -9,6 +9,7 @@
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"test:ui": "vitest --ui",
|
"test:ui": "vitest --ui",
|
||||||
|
"test:nowatch": "vitest run",
|
||||||
"coverage": "vitest run coverage"
|
"coverage": "vitest run coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue