Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 5926b55

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 37bcd06 commit 5926b55

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,25 @@ steps:
2828
connection: 'react-native-windows'
2929
userRepository: 'react-native-windows/CalculatorPackage'
3030
defaultVersionType: 'latest'
31-
# downloadPath: '$(System.ArtifactsDirectory)'
31+
downloadPath: '$(System.ArtifactsDirectory)'
3232

3333
- task: ExtractFiles@1
3434
inputs:
35-
archiveFilePatterns: '*.zip'
35+
archiveFilePatterns: '$(System.ArtifactsDirectory)/*.zip'
3636
destinationFolder: 'TestApp'
37-
cleanDestinationFolder: true
37+
cleanDestinationFolder: true
38+
39+
- task: PowerShell@1
40+
displayName: 'Install Calculator Cert'
41+
inputs:
42+
scriptType: inlineScript
43+
arguments: '-NonInteractive -Verb RunAs'
44+
inlineScript: |
45+
$file = ( Get-ChildItem -Path TestApp\Calculator_$(PackageManifest)_Test\Calculator_$(PackageManifest)_x64.cer )
46+
$file | Import-Certificate -CertStoreLocation cert:\LocalMachine\Root
47+
48+
- task: PowerShell@1
49+
displayName: 'Install Calculator Packages'
50+
inputs:
51+
scriptName: 'TestApp\Calculator_$(PackageManifest)_Test\Add-AppDevPackage.ps1'
52+
arguments: '-NonInteractive -Force:$true -Verb RunAs'

0 commit comments

Comments
 (0)