Skip to content

Commit

Permalink
Set up basic CI for vscode extension (#96)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
isra-fel authored Sep 1, 2021
1 parent 6e26572 commit a3c5176
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .azure-pipelines/vscode-extension.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit a3c5176

Please sign in to comment.