-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Engineering - add npm pipeline (#44)
* Scaffold pipeline * Ignore build folder * Add test steps * Try running browser headless * Do not run headless * Add build platforms * Try running headless * Fixing some issues for Windows * Only run on Windows * Remove headless flag * Upgrade Playwright * Add back the platforms * Bring back the --headless flag * Try a conditional task * Revert the flag * Switch to a predefined variable * Trying various things * Add back a platform * Another attempt
- Loading branch information
Showing
4 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
.eslintrc.js | ||
.prettierrc | ||
.github/ | ||
build/ | ||
src/ | ||
sample/ | ||
fs-provider/src/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: $(Date:yyyyMMdd)$(Rev:.r) | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- main | ||
tags: | ||
include: ['*'] | ||
pr: none | ||
|
||
resources: | ||
repositories: | ||
- repository: templates | ||
type: github | ||
name: microsoft/vscode-engineering | ||
ref: main | ||
endpoint: Monaco | ||
|
||
parameters: | ||
- name: publishPackage | ||
displayName: 🚀 Publish Package | ||
type: boolean | ||
default: false | ||
|
||
extends: | ||
template: azure-pipelines/npm-package/pipeline.yml@templates | ||
parameters: | ||
buildPlatforms: | ||
- name: Linux | ||
nodeVersions: | ||
- 14.x | ||
- 16.x | ||
- name: MacOS | ||
nodeVersions: | ||
- 14.x | ||
- 16.x | ||
- name: Windows | ||
nodeVersions: | ||
- 14.x | ||
- 16.x | ||
|
||
buildSteps: | ||
- script: yarn --froze-lockfile | ||
displayName: Install dependencies | ||
|
||
- script: yarn --cwd=fs-provider --froze-lockfile | ||
displayName: Install dependencies (fs-provider) | ||
|
||
- script: yarn compile | ||
displayName: Compile npm package | ||
|
||
testSteps: | ||
- bash: | | ||
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
echo ">>> Started xvfb" | ||
displayName: Start xvfb | ||
condition: eq(variables['Agent.OS'], 'Linux') | ||
- script: yarn --cwd=sample --froze-lockfile | ||
displayName: Install dependencies (sample) | ||
|
||
- script: yarn sample-tests | ||
displayName: Test npm package | ||
env: | ||
DISPLAY: ':99.0' | ||
|
||
publishPackage: ${{ parameters.publishPackage }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters