Skip to content

Commit 294d71b

Browse files
authored
chore: onboard OSS pipeline to 1ES template (#1185)
1 parent fafad8a commit 294d71b

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed

build/azure-pipelines.oss.yml

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,45 @@ variables:
88
- name: skipComponentGovernanceDetection
99
value: true
1010

11-
jobs:
12-
- job: BuildAndTest
13-
strategy:
14-
matrix:
15-
Linux:
16-
imageName: 'ubuntu-latest'
17-
MacOS:
18-
imageName: 'macos-latest'
19-
Windows:
20-
imageName: 'windows-latest'
21-
22-
pool:
23-
vmImage: $(imageName)
24-
25-
steps:
26-
- task: NodeTool@0
27-
inputs:
28-
versionSpec: '20.x'
29-
displayName: 'Install Node.js'
11+
resources:
12+
repositories:
13+
- repository: 1esPipelines
14+
type: git
15+
name: 1ESPipelineTemplates/1ESPipelineTemplates
16+
ref: refs/tags/release
3017

31-
- script: npm ci
32-
displayName: 'Install dependencies'
18+
extends:
19+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines
20+
parameters:
21+
sdl:
22+
sourceAnalysisPool: 1es-oss-windows-2022-x64
23+
codeql:
24+
compiled:
25+
enabled: false
26+
componentgovernance:
27+
enabled: false
28+
tsa:
29+
enabled: true
3330

34-
- script: npm test
35-
displayName: 'Run tests'
31+
stages:
32+
- stage: BuildAndTest
33+
jobs:
34+
- job: Windows
35+
pool:
36+
name: '1es-oss-windows-2022-x64'
37+
os: windows
38+
steps:
39+
- template: ./build/build.oss.yml@self
40+
- job: macOS
41+
pool:
42+
name: Azure Pipelines
43+
vmImage: macOS-latest
44+
os: macOS
45+
steps:
46+
- template: ./build/build.oss.yml@self
47+
- job: Linux
48+
pool:
49+
name: '1es-oss-ubuntu-22.04-x64'
50+
os: linux
51+
steps:
52+
- template: ./build/build.oss.yml@self

build/build.oss.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
- task: NodeTool@0
3+
inputs:
4+
versionSpec: '20.x'
5+
displayName: 'Install Node.js'
6+
7+
- script: npm ci
8+
displayName: 'Install dependencies'
9+
10+
- script: npm test
11+
displayName: 'Run tests'

0 commit comments

Comments
 (0)