Skip to content

Commit 3abbc69

Browse files
committed
Fix integration-test
1 parent 0f9e46c commit 3abbc69

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.ado/jobs/integration-test.yml

+24-9
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,14 @@ jobs:
9494
- ${{ if eq(matrix.BuildConfiguration, 'Debug') }}:
9595
# The build is more likely to crash after we've started other bits that
9696
# take up memory. Do the expensive parts of the build first.
97-
- script: yarn windows --no-launch --no-packager --no-deploy --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory)
98-
displayName: yarn windows --no-launch
99-
workingDirectory: packages/integration-test-app
97+
- template: ../templates/run-windows-with-certificates.yml
98+
parameters:
99+
buildEnvironment: ${{ parameters.BuildEnvironment }}
100+
buildConfiguration: ${{ matrix.BuildConfiguration }}
101+
buildPlatform: ${{ matrix.BuildPlatform }}
102+
buildLogDirectory: $(BuildLogDirectory)
103+
workingDirectory: packages/integration-test-app
104+
moreMSBuildProps: --no-packager --no-deploy --no-autolink
100105

101106
- powershell: Start-Process npm.cmd -ArgumentList "run","start"
102107
displayName: Start packager
@@ -127,14 +132,24 @@ jobs:
127132
# There's a slight race condition here, where we assume Chrome will open
128133
# before this launches the app. This step takes ~1m on CI machines so it
129134
# shouldn't be a practical concern.
130-
- script: yarn windows --no-build ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging
131-
displayName: yarn windows --no-build
132-
workingDirectory: packages/integration-test-app
135+
- template: ../templates/run-windows-with-certificates.yml
136+
parameters:
137+
buildEnvironment: ${{ parameters.BuildEnvironment }}
138+
buildConfiguration: ${{ matrix.BuildConfiguration }}
139+
buildPlatform: ${{ matrix.BuildPlatform }}
140+
buildLogDirectory: $(BuildLogDirectory)
141+
workingDirectory: packages/integration-test-app
142+
moreMSBuildProps: --no-build ${{ matrix.DeployOptions }} --no-packager --no-deploy --no-autolink
133143

134144
- ${{ if eq(matrix.BuildConfiguration, 'Release') }}:
135-
- script: yarn windows --release ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory)
136-
displayName: yarn windows --release
137-
workingDirectory: packages/integration-test-app
145+
- template: ../templates/run-windows-with-certificates.yml
146+
parameters:
147+
buildEnvironment: ${{ parameters.BuildEnvironment }}
148+
buildConfiguration: ${{ matrix.BuildConfiguration }}
149+
buildPlatform: ${{ matrix.BuildPlatform }}
150+
buildLogDirectory: $(BuildLogDirectory)
151+
workingDirectory: packages/integration-test-app
152+
moreMSBuildProps: ${{ matrix.DeployOptions }} --no-packager --no-autolink
138153

139154
- ${{ if ne(matrix.DeployOptions, '--no-deploy') }}:
140155
- powershell: |

0 commit comments

Comments
 (0)