b058427b76
* Disable concurrency for tests * Add browser instance sharing * Bump concurrency and install chromedriver smoother * Fix config typo * Fix local test * Limit azure concurrency again * Add delay for empty-object-test * Make sure to use open port for chromedriver * Move browser closing to jest-environment * Re-enable concurrency for Azure * bump * Disable concurrency for Azure again * Re-enable concurrency for Azure * bump
47 lines
1,012 B
YAML
47 lines
1,012 B
YAML
pool:
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
variables:
|
|
NEXT_TELEMETRY_DISABLED: '1'
|
|
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
|
|
CHROMEDRIVER_VERSION: '76.0.3809.68'
|
|
|
|
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:
|
|
- 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'
|