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:
Родитель
6e265724aa
Коммит
a3c517631f
|
@ -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'
|
Загрузка…
Ссылка в новой задаче