808a21cf32
* Add listing Chrome version to Azure * Move script up * Update script * Update chromedriver version
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
pool:
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
variables:
|
|
NEXT_TELEMETRY_DISABLED: '1'
|
|
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
|
|
CHROMEDRIVER_VERSION: '78.0.3904.70'
|
|
|
|
strategy:
|
|
maxParallel: 10
|
|
matrix:
|
|
node-10-1:
|
|
group: 1/4
|
|
node_version: ^10.10.0
|
|
node-10-2:
|
|
group: 2/4
|
|
node_version: ^10.10.0
|
|
node-10-3:
|
|
group: 3/4
|
|
node_version: ^10.10.0
|
|
node-10-4:
|
|
group: 4/4
|
|
node_version: ^10.10.0
|
|
|
|
steps:
|
|
- script: |
|
|
wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value
|
|
displayName: 'List Chrome version'
|
|
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: $(node_version)
|
|
displayName: 'Install Node.js'
|
|
|
|
- task: CacheBeta@0
|
|
inputs:
|
|
key: yarn | $(Agent.OS) | yarn.lock
|
|
path: $(YARN_CACHE_FOLDER)
|
|
displayName: Cache Yarn packages
|
|
|
|
- script: |
|
|
yarn install --frozen-lockfile --check-files
|
|
displayName: 'Install dependencies'
|
|
|
|
- script: |
|
|
node node_modules/chromedriver/install.js
|
|
displayName: 'Install correct Chrome Driver version'
|
|
|
|
- script: |
|
|
node run-tests.js -g $(group)
|
|
displayName: 'Run tests'
|