rsnext/azure-pipelines.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2018-10-01 13:31:00 +02:00
pool:
vmImage: 'vs2017-win2016'
2019-09-13 04:51:56 +02:00
variables:
NEXT_TELEMETRY_DISABLED: '1'
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
CHROMEDRIVER_VERSION: '78.0.3904.70'
2019-09-13 04:51:56 +02:00
2018-10-01 13:31:00 +02:00
strategy:
maxParallel: 10
matrix:
node-10-1:
group: 1/4
2018-10-01 13:31:00 +02:00
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
2018-10-01 13:31:00 +02:00
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'
2018-10-01 13:31:00 +02:00
- task: CacheBeta@0
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: Cache Yarn packages
2018-10-01 13:31:00 +02:00
- script: |
2019-10-23 20:14:32 +02:00
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'