Skip to content

Commit a533ebc

Browse files
committed
add ado pipeline
1 parent 9781d05 commit a533ebc

File tree

5 files changed

+69
-51
lines changed

5 files changed

+69
-51
lines changed

.github/workflows/ci.yml

-36
This file was deleted.

adapter/.npmignore

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.vscode/
2-
src/
3-
lib/tests/
4-
.npmignore
5-
tsconfig.json
1+
/*
2+
!lib
3+
!thirdpartynotices.txt
4+
lib/test/
5+
lib/generator*
6+
lib/*.map

ci.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: $(Date:yyyyMMdd)$(Rev:.r)
2+
3+
trigger:
4+
branches:
5+
include:
6+
- main
7+
8+
pr: none
9+
10+
resources:
11+
repositories:
12+
- repository: templates
13+
type: github
14+
name: microsoft/vscode-engineering
15+
ref: main
16+
endpoint: Monaco
17+
18+
parameters:
19+
- name: publishPackage
20+
displayName: 🚀 Publish packages
21+
type: boolean
22+
default: false
23+
24+
- name: runOnPackages
25+
displayName: 🚀 Run on packages
26+
type: object
27+
default: [protocol, testSupport, adapter]
28+
29+
extends:
30+
template: azure-pipelines/npm-package/pipeline.yml@templates
31+
parameters:
32+
npmPackages:
33+
- ${{ each package in parameters.runOnPackages }}:
34+
- name: ${{ package }}
35+
buildSteps:
36+
- script: npm ci
37+
displayName: ☁️ Install
38+
- script: npm run compile
39+
displayName: 📦 Compile
40+
testSteps:
41+
- script: npm ci
42+
displayName: ☁️ Install
43+
- script: npm run compile
44+
displayName: 📦 Compile
45+
- script: npm test
46+
displayName: 👨‍🔬 Test
47+
48+
testPlatforms:
49+
- name: Linux
50+
nodeVersions:
51+
- 16.x
52+
53+
publishPackage: ${{ parameters.publishPackage }}
54+
workingDirectory: $(Build.SourcesDirectory)/${{ package }}
55+
publishRequiresApproval: false

protocol/.npmignore

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
.vscode/
1+
/*
2+
!lib
23
lib/test/
34
lib/generator*
45
lib/*.map
5-
src/
6-
test/
7-
.gitignore
8-
.npmignore
9-
tsconfig.json

testSupport/.npmignore

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.vscode/
2-
src/
3-
.npmignore
4-
tsconfig.json
1+
/*
2+
!lib
3+
!thirdpartynotices.txt
4+
lib/test/
5+
lib/generator*
6+
lib/*.map

0 commit comments

Comments
 (0)