Skip to content

Commit

Permalink
Merge pull request #56 from oslabs-beta/AL/pipelines
Browse files Browse the repository at this point in the history
pipelines
  • Loading branch information
ash-t-luu authored Feb 15, 2024
2 parents fddf514 + a24d3a4 commit 2257d5d
Show file tree
Hide file tree
Showing 4 changed files with 1,270 additions and 20 deletions.
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

0 comments on commit 2257d5d

Please sign in to comment.