azure-pipelines-templates/jobs/multi-test.yml
parameters:
vmImage: ubuntu-latest
nodeVersions:
- 8.3.0
- 8.x
- 9.0.0
- 9.x
- 10.0.0
- 10.x
- 11.0.0
- 11.x
- 12.0.0
- 12.x
- 13.0.0
- 13.x
variables: {}
timeoutMin: 5
env: {}
jobs:
- job: ${{ parameters.jobName }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
${{ each nodeVersion in parameters.nodeVersions }}:
${{ format('Node.js {0}', nodeVersion) }}:
node_version: ${{ nodeVersion }}
variables: ${{ parameters.variables }}
steps:
- template: ../steps/init-node.yml
parameters:
nodeVersion: $(node_version)
- script: ${{ parameters.script }}
displayName: ${{ parameters.stepLabel }}
timeoutInMinutes: ${{ parameters.timeoutMin }}
env: ${{ parameters.env }}
cancelTimeoutInMinutes: 1