2022-05-17 18:49:52 +08:00
|
|
|
trigger:
|
|
|
|
- main
|
|
|
|
- release/*
|
2022-05-11 18:08:54 +08:00
|
|
|
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include: ["main", "release/*"]
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: Codeql.SkipTaskAutoInjection
|
|
|
|
value: true
|
|
|
|
- name: skipComponentGovernanceDetection
|
|
|
|
value: true
|
2022-10-24 15:24:44 +08:00
|
|
|
- name: NPM_REGISTRY
|
2022-12-21 03:30:58 +08:00
|
|
|
value: "none"
|
2023-10-09 08:18:22 +08:00
|
|
|
- name: CARGO_REGISTRY
|
|
|
|
value: "none"
|
2022-07-21 19:30:17 +08:00
|
|
|
- name: VSCODE_CIBUILD
|
|
|
|
value: ${{ in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}
|
2022-05-11 18:08:54 +08:00
|
|
|
- name: VSCODE_QUALITY
|
|
|
|
value: oss
|
|
|
|
- name: VSCODE_STEP_ON_IT
|
|
|
|
value: false
|
|
|
|
|
2022-07-28 18:38:45 +08:00
|
|
|
jobs:
|
2022-07-21 19:30:17 +08:00
|
|
|
- ${{ if ne(variables['VSCODE_CIBUILD'], true) }}:
|
2022-07-28 18:38:45 +08:00
|
|
|
- job: Compile
|
2022-07-21 19:30:17 +08:00
|
|
|
displayName: Compile & Hygiene
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-07-28 18:38:45 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: product-compile.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
parameters:
|
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
|
|
|
|
|
|
|
- job: Linuxx64UnitTest
|
|
|
|
displayName: Linux (Unit Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-07-28 18:38:45 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
NPM_ARCH: x64
|
|
|
|
DISPLAY: ":10"
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: linux/product-build-linux.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
parameters:
|
2023-04-02 15:35:39 +08:00
|
|
|
VSCODE_ARCH: x64
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-04-03 14:14:08 +08:00
|
|
|
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_RUN_UNIT_TESTS: true
|
|
|
|
VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
VSCODE_RUN_SMOKE_TESTS: false
|
2022-05-11 18:08:54 +08:00
|
|
|
|
2022-07-28 18:38:45 +08:00
|
|
|
- job: Linuxx64IntegrationTest
|
|
|
|
displayName: Linux (Integration Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-07-28 18:38:45 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
NPM_ARCH: x64
|
|
|
|
DISPLAY: ":10"
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: linux/product-build-linux.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
parameters:
|
2023-04-02 15:35:39 +08:00
|
|
|
VSCODE_ARCH: x64
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-04-03 14:14:08 +08:00
|
|
|
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
VSCODE_RUN_INTEGRATION_TESTS: true
|
|
|
|
VSCODE_RUN_SMOKE_TESTS: false
|
|
|
|
|
|
|
|
- job: Linuxx64SmokeTest
|
|
|
|
displayName: Linux (Smoke Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-07-28 18:38:45 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
NPM_ARCH: x64
|
|
|
|
DISPLAY: ":10"
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: linux/product-build-linux.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
parameters:
|
2023-04-02 15:35:39 +08:00
|
|
|
VSCODE_ARCH: x64
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-04-03 14:14:08 +08:00
|
|
|
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
|
2022-07-28 18:38:45 +08:00
|
|
|
VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
VSCODE_RUN_SMOKE_TESTS: true
|
|
|
|
|
2022-10-18 00:56:15 +08:00
|
|
|
- job: LinuxCLI
|
|
|
|
displayName: Linux (CLI)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-10-18 00:56:15 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: cli/test.yml@self
|
2022-10-18 00:56:15 +08:00
|
|
|
|
2022-12-21 03:30:58 +08:00
|
|
|
- job: Windowsx64UnitTests
|
|
|
|
displayName: Windows (Unit Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-windows-2022-x64
|
2022-12-21 03:30:58 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
NPM_ARCH: x64
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: win32/product-build-win32.yml@self
|
2022-12-21 03:30:58 +08:00
|
|
|
parameters:
|
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-07-11 20:29:02 +08:00
|
|
|
VSCODE_ARCH: x64
|
2023-04-03 14:14:08 +08:00
|
|
|
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
|
2022-12-21 03:30:58 +08:00
|
|
|
VSCODE_RUN_UNIT_TESTS: true
|
|
|
|
VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
VSCODE_RUN_SMOKE_TESTS: false
|
|
|
|
|
|
|
|
- job: Windowsx64IntegrationTests
|
|
|
|
displayName: Windows (Integration Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-windows-2022-x64
|
2024-09-06 21:18:02 +08:00
|
|
|
timeoutInMinutes: 60
|
2022-12-21 03:30:58 +08:00
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
NPM_ARCH: x64
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: win32/product-build-win32.yml@self
|
2022-12-21 03:30:58 +08:00
|
|
|
parameters:
|
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-07-11 20:29:02 +08:00
|
|
|
VSCODE_ARCH: x64
|
2023-04-03 14:14:08 +08:00
|
|
|
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
|
2022-12-21 03:30:58 +08:00
|
|
|
VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
VSCODE_RUN_INTEGRATION_TESTS: true
|
|
|
|
VSCODE_RUN_SMOKE_TESTS: false
|
|
|
|
|
|
|
|
# - job: Windowsx64SmokeTests
|
|
|
|
# displayName: Windows (Smoke Tests)
|
2024-08-30 23:00:26 +08:00
|
|
|
# pool: 1es-oss-windows-2022-x64
|
2022-12-21 03:30:58 +08:00
|
|
|
# timeoutInMinutes: 30
|
|
|
|
# variables:
|
|
|
|
# VSCODE_ARCH: x64
|
|
|
|
# NPM_ARCH: x64
|
|
|
|
# steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
# - template: win32/product-build-win32.yml@self
|
2022-12-21 03:30:58 +08:00
|
|
|
# parameters:
|
|
|
|
# VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2023-07-11 20:29:02 +08:00
|
|
|
# VSCODE_ARCH: x64
|
2022-12-21 03:30:58 +08:00
|
|
|
# VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
# VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
# VSCODE_RUN_SMOKE_TESTS: true
|
|
|
|
|
2022-07-28 18:38:45 +08:00
|
|
|
- ${{ if eq(variables['VSCODE_CIBUILD'], true) }}:
|
|
|
|
- job: Linuxx64MaintainNodeModulesCache
|
|
|
|
displayName: Linux (Maintain node_modules cache)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-ubuntu-22.04-x64
|
2022-07-28 18:38:45 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: oss/product-build-pr-cache-linux.yml@self
|
2022-07-19 21:40:33 +08:00
|
|
|
|
2022-12-21 03:30:58 +08:00
|
|
|
- job: Windowsx64MaintainNodeModulesCache
|
|
|
|
displayName: Windows (Maintain node_modules cache)
|
2024-08-30 23:00:26 +08:00
|
|
|
pool: 1es-oss-windows-2022-x64
|
2022-12-21 03:30:58 +08:00
|
|
|
timeoutInMinutes: 30
|
|
|
|
variables:
|
|
|
|
VSCODE_ARCH: x64
|
|
|
|
steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
- template: oss/product-build-pr-cache-win32.yml@self
|
2022-12-21 03:30:58 +08:00
|
|
|
|
2022-07-28 18:38:45 +08:00
|
|
|
# - job: macOSUnitTest
|
|
|
|
# displayName: macOS (Unit Tests)
|
|
|
|
# pool:
|
2022-10-24 21:38:26 +08:00
|
|
|
# vmImage: macOS-11
|
2022-07-28 18:38:45 +08:00
|
|
|
# timeoutInMinutes: 60
|
|
|
|
# variables:
|
|
|
|
# BUILDSECMON_OPT_IN: true
|
|
|
|
# VSCODE_ARCH: x64
|
|
|
|
# steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
# - template: darwin/product-build-darwin.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
# parameters:
|
|
|
|
# VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
|
|
|
# VSCODE_RUN_UNIT_TESTS: true
|
|
|
|
# VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
# VSCODE_RUN_SMOKE_TESTS: false
|
|
|
|
# - job: macOSIntegrationTest
|
|
|
|
# displayName: macOS (Integration Tests)
|
|
|
|
# pool:
|
2022-10-24 21:38:26 +08:00
|
|
|
# vmImage: macOS-11
|
2022-07-28 18:38:45 +08:00
|
|
|
# timeoutInMinutes: 60
|
|
|
|
# variables:
|
|
|
|
# BUILDSECMON_OPT_IN: true
|
|
|
|
# VSCODE_ARCH: x64
|
|
|
|
# steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
# - template: darwin/product-build-darwin.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
# parameters:
|
|
|
|
# VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
|
|
|
# VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
# VSCODE_RUN_INTEGRATION_TESTS: true
|
|
|
|
# VSCODE_RUN_SMOKE_TESTS: false
|
|
|
|
# - job: macOSSmokeTest
|
|
|
|
# displayName: macOS (Smoke Tests)
|
|
|
|
# pool:
|
2022-10-24 21:38:26 +08:00
|
|
|
# vmImage: macOS-11
|
2022-07-28 18:38:45 +08:00
|
|
|
# timeoutInMinutes: 60
|
|
|
|
# variables:
|
|
|
|
# BUILDSECMON_OPT_IN: true
|
|
|
|
# VSCODE_ARCH: x64
|
|
|
|
# steps:
|
2024-03-21 21:16:32 +08:00
|
|
|
# - template: darwin/product-build-darwin.yml@self
|
2022-07-28 18:38:45 +08:00
|
|
|
# parameters:
|
|
|
|
# VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
|
|
|
# VSCODE_RUN_UNIT_TESTS: false
|
|
|
|
# VSCODE_RUN_INTEGRATION_TESTS: false
|
|
|
|
# VSCODE_RUN_SMOKE_TESTS: true
|