Skip to content

pipelines #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
],
"outFiles": ["${workspaceFolder}/build/**.js"],
"preLaunchTask": "npm: test-compile"
"preLaunchTask": "npm: compile"
}
]
}
53 changes: 53 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
trigger:
branches:
include:
- main
tags:
include:
- v*
- refs/tags/v*

pr:
branches:
include:
- main

strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macos-latest'

pool:
vmImage: $(imageName)

steps:

- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'

- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))

- bash: |
echo ">>> Run npm install and Compile vscode-test"
npm install && npm run compile
echo ">>> Run sample integration test"
npm install && npm run compile && npm run tests
displayName: Run Tests
env:
DISPLAY: ':99.0'

- bash: |
echo ">>> Publish"
npm run deploy
displayName: Publish
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
env:
VSCE_PAT: $(VSCE_PAT)
Loading