diff --git a/.drone.yml b/.drone.yml index 18d98d2..0a843af 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - node ./test-server/node-http.js & - npm install - - npm test + - npm run test:nowatch --- kind: pipeline @@ -20,4 +20,4 @@ steps: commands: - node ./test-server/node-http.js & - npm install - - npm test \ No newline at end of file + - npm run test:nowatch \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..40364ea --- /dev/null +++ b/azure-pipelines.yml @@ -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' diff --git a/package.json b/package.json index b4e99f5..be45a0f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "preview": "vite preview", "test": "vitest", "test:ui": "vitest --ui", + "test:nowatch": "vitest run", "coverage": "vitest run coverage" }, "dependencies": {