Set up basic CI for vscode extension (#96)

* Set up CI with Azure Pipelines

[skip ci]

* Update vscode-extension.yml

* error out if exit code != 0

* Update vscode-extension.yml

* Update vscode-extension.yml
This commit is contained in:
Yeming Liu 2021-09-01 15:01:59 +08:00 коммит произвёл GitHub
Родитель 6e265724aa
Коммит a3c517631f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

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