rsnext/azure-pipelines.yml
2019-12-11 15:16:15 -05:00

51 lines
1.2 KiB
YAML

pool:
vmImage: 'windows-2019'
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'