-
Notifications
You must be signed in to change notification settings - Fork 72
/
azure-pipelines.yml
77 lines (73 loc) · 2.42 KB
/
azure-pipelines.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# FluidHelloWorld build for CI
pr:
- main
- main-azure
resources:
repositories:
- repository: m365Pipelines
type: git
name: 1ESPipelineTemplates/M365GPT
ref: refs/tags/release
extends:
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
parameters:
pool:
name: Small-1ES
os: linux
sdl:
arrow:
# This is the service connection for the Arrow Service Connection in FluidFramework Azure DevOps organization
# Currently we want to use different names for internal and public builds for Arrow Service Connection
${{ if eq(variables['System.TeamProject'], 'internal') }}:
serviceConnection: ff-internal-arrow-sc
${{ else }}:
serviceConnection: ff-public-arrow-sc
sourceAnalysisPool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
# Skip tagging if Github PR coming from a fork
settings:
skipBuildTagsForGitHubPullRequests: true
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- job: job
steps:
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: "Register"
verbosity: "Verbose"
alertWarningLevel: "High"
- task: UseNode@1
displayName: Use Node 20.x
inputs:
version: 20.x
- task: Npm@1
displayName: Install
inputs:
command: "custom"
customCommand: "ci"
- task: CmdLine@2
displayName: Build
inputs:
script: "npm run build"
- task: CmdLine@2
displayName: Lint
inputs:
script: "npm run lint"
- task: CmdLine@2
displayName: Test
inputs:
script: "npm run ci:test"
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: "JUnit"
testResultsFiles: "**/*junit-report.xml"
searchFolder: "$(System.DefaultWorkingDirectory)"
condition: succeededOrFailed()