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

Commit 67084e5

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 56cb4e3 commit 67084e5

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

azure-pipelines.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,37 @@ steps:
2323
inputs:
2424
script: yarn run prepublishOnly
2525

26+
- task: PowerShell@2
27+
displayName: 'Replace the AppID'
28+
inputs:
29+
targetType: 'inline'
30+
script: '((Get-Content -path example/Setup.ts -Raw) -replace "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","Microsoft.WindowsCalculator.Dev_8wekyb3d8bbwe!App") | Set-Content -Path example/Setup.ts'
31+
- task: PowerShell@2
32+
displayName: 'Show the AppID'
33+
inputs:
34+
targetType: 'inline'
35+
script: 'Get-Content example/Setup.ts | foreach {Write-Output $_}'
36+
37+
- task: CmdLine@2
38+
displayName: yarn install
39+
inputs:
40+
script: yarn install
41+
workingDirectory: 'example'
42+
43+
- task: DeleteFiles@1
44+
displayName: Remove offical selenium-appium\dist
45+
inputs:
46+
SourceFolder: 'example\node_modules\selenium-appium\dist'
47+
Contents: '*'
48+
49+
- task: CopyFiles@2
50+
displayName: copy built selenium-appium\dist
51+
inputs:
52+
SourceFolder: 'dist'
53+
Contents: '**'
54+
TargetFolder: 'example\node_modules\selenium-appium\dist'
55+
OverWrite: true
56+
2657
- task: DownloadGitHubRelease@0
2758
inputs:
2859
connection: 'react-native-windows'
@@ -50,29 +81,6 @@ steps:
5081
inputs:
5182
scriptName: 'TestApp\Calculator_$(PackageManifest)_Test\Add-AppDevPackage.ps1'
5283
arguments: '-NonInteractive -Force:$true -Verb RunAs'
53-
54-
- task: PowerShell@2
55-
displayName: 'Replace the AppID'
56-
inputs:
57-
targetType: 'inline'
58-
script: '((Get-Content -path example/Setup.ts -Raw) -replace "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","Microsoft.WindowsCalculator.Dev_8wekyb3d8bbwe!App") | Set-Content -Path example/Setup.ts'
59-
60-
- task: CmdLine@2
61-
inputs:
62-
script: 'type example/Setup.ts'
63-
64-
- task: DeleteFiles@1
65-
inputs:
66-
SourceFolder: 'example\node_modules\selenium-appium\dist'
67-
Contents: '*'
68-
69-
- task: CopyFiles@2
70-
inputs:
71-
SourceFolder: 'dist'
72-
Contents: '**'
73-
TargetFolder: 'example\node_modules\selenium-appium\dist'
74-
OverWrite: true
75-
7684
- task: CmdLine@2
7785
inputs:
7886
script: 'yarn run jest'

0 commit comments

Comments
 (0)