sounisi5011/metalsmith-postcss2

View on GitHub
.template/azure-pipelines/jobs/multi-test.yml

Summary

Maintainability
Test Coverage
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: {}

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)

      - ${{ each stepParams in parameters.steps }}:
          - script: ${{ stepParams.script }}

            ${{ if stepParams.label }}:
              displayName: ${{ stepParams.label }}

            ${{ if stepParams.timeoutMin }}:
              timeoutInMinutes: ${{ stepParams.timeoutMin }}
            ${{ if not(stepParams.timeoutMin) }}:
              timeoutInMinutes: 5

            ${{ if stepParams.env }}:
              env: ${{ stepParams.env }}

    cancelTimeoutInMinutes: 1