Skip to content

Commit

Permalink
add ado pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Dec 13, 2022
1 parent 9781d05 commit a533ebc
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 51 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/ci.yml

This file was deleted.

11 changes: 6 additions & 5 deletions adapter/.npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode/
src/
lib/tests/
.npmignore
tsconfig.json
/*
!lib
!thirdpartynotices.txt
lib/test/
lib/generator*
lib/*.map
55 changes: 55 additions & 0 deletions ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: $(Date:yyyyMMdd)$(Rev:.r)

trigger:
branches:
include:
- main

pr: none

resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco

parameters:
- name: publishPackage
displayName: 🚀 Publish packages
type: boolean
default: false

- name: runOnPackages
displayName: 🚀 Run on packages
type: object
default: [protocol, testSupport, adapter]

extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
npmPackages:
- ${{ each package in parameters.runOnPackages }}:
- name: ${{ package }}
buildSteps:
- script: npm ci
displayName: ☁️ Install
- script: npm run compile
displayName: 📦 Compile
testSteps:
- script: npm ci
displayName: ☁️ Install
- script: npm run compile
displayName: 📦 Compile
- script: npm test
displayName: 👨‍🔬 Test

testPlatforms:
- name: Linux
nodeVersions:
- 16.x

publishPackage: ${{ parameters.publishPackage }}
workingDirectory: $(Build.SourcesDirectory)/${{ package }}
publishRequiresApproval: false
8 changes: 2 additions & 6 deletions protocol/.npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
.vscode/
/*
!lib
lib/test/
lib/generator*
lib/*.map
src/
test/
.gitignore
.npmignore
tsconfig.json
10 changes: 6 additions & 4 deletions testSupport/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.vscode/
src/
.npmignore
tsconfig.json
/*
!lib
!thirdpartynotices.txt
lib/test/
lib/generator*
lib/*.map

0 comments on commit a533ebc

Please sign in to comment.