forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.bundlesize.yml
44 lines (37 loc) · 1.34 KB
/
azure-pipelines.bundlesize.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
jobs:
- job: build
pool:
name: Hosted VS2017
demands: npm
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: yarn
displayName: yarn
- script: yarn buildto test-bundles
displayName: yarn build to test-bundles
- script: yarn workspace test-bundles bundle:size
displayName: yarn bundle test-bundles
- script: yarn bundlesizecollect
displayName: 'Collate Bundle Size Information'
- task: PublishBuildArtifacts@1
displayName: 'Publish Bundle Size information to Azure Dev Ops Artifacts'
inputs:
PathtoPublish: 'apps/test-bundles/dist/bundlesizes.json'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact dist folder upon build for debug'
inputs:
PathtoPublish: 'apps/test-bundles/dist'
ArtifactName: distdrop
- job: lightrail
pool: server
dependsOn: build
steps:
- task: odefun.odsp-lightrail-tasks-partner.odsp-lightrail-tasks-SizeAuditorWorker.SizeAuditorWorker@0
displayName: 'Size Auditor Check on LightRail'
inputs:
connectedServiceName: lowimpact
sourceVersionMessage: '$(Build.SourceVersionMessage)'
sourceRepositoryUrl: 'https://github.com/microsoft/fluentui'