diff --git a/.azure-pipelines/vscode-extension.yml b/.azure-pipelines/vscode-extension.yml new file mode 100644 index 0000000..ce4e69b --- /dev/null +++ b/.azure-pipelines/vscode-extension.yml @@ -0,0 +1,27 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +pr: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '14.x' + displayName: 'Install Node.js 14' + +- script: | + pushd vscode-extension + npm install + npm run lint + npm run compile + if [ $? -ne 0 ]; then + exit 1 + fi + popd + displayName: 'Lint and build'