Skip to content

Commit a3c5176

Browse files
authored
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
1 parent 6e26572 commit a3c5176

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.azure-pipelines/vscode-extension.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Node.js
2+
# Build a general Node.js project with npm.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
5+
6+
pr:
7+
- main
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
12+
steps:
13+
- task: NodeTool@0
14+
inputs:
15+
versionSpec: '14.x'
16+
displayName: 'Install Node.js 14'
17+
18+
- script: |
19+
pushd vscode-extension
20+
npm install
21+
npm run lint
22+
npm run compile
23+
if [ $? -ne 0 ]; then
24+
exit 1
25+
fi
26+
popd
27+
displayName: 'Lint and build'

0 commit comments

Comments
 (0)