Skip to content

Commit 5dca2eb

Browse files
authored
Use parameter
1 parent b8c7141 commit 5dca2eb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

azure-pipelines/test-matrix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- template: /azure-pipelines/test.yml@self
3232
parameters:
3333
dotnetVersion: ${{ parameters.dotnetVersion }}
34-
installAdditionalLinuxDependencies: true
34+
installAdditionalLinuxDependencies: ${{ parameters.installAdditionalLinuxDependencies }}
3535
npmCommand: $(npmCommand)
36-
testVSCodeVersion: ${{ parameters.testVSCodeVersion }}
36+
testVSCodeVersion: ${{ parameters.testVSCodeVersion }}
37+
isIntegrationTest: $[ startsWith(variables.npmCommand, 'test:integration') ]

azure-pipelines/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ parameters:
88
type: string
99
- name: testVSCodeVersion
1010
type: string
11+
- name: isIntegrationTest
12+
type: boolean
1113

1214
steps:
1315
- checkout: self
@@ -44,7 +46,7 @@ steps:
4446
mergeTestResults: true
4547
testRunTitle: $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
4648

47-
- ${{ if contains(parameters.npmCommand, ':integration') }}:
49+
- ${{ if eq(parameters.isIntegrationTest, true) }}:
4850
- powershell: |
4951
$tempPath = [System.IO.Path]::GetTempPath()
5052
echo "Temp Path: $tempPath"

0 commit comments

Comments
 (0)