steps:

  #
  # Node 14
  #
  - label: "Electron {{matrix.electron_version}} tests - macOS - Node {{matrix.node_version}}"
    timeout_in_minutes: 40
    agents:
      queue: macos-11
    env:
      DEVELOPER_DIR: "/Applications/Xcode12.app"
      NODE_VERSION: "{{matrix.node_version}}"
      ELECTRON_VERSION: "{{matrix.electron_version}}"
      PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
      START_LOCAL_NPM: 1
      VERBOSE: 1
    matrix:
      setup:
        electron_version:
          - "12.0.0"
          - "20.0.0"
        node_version:
          - "12"
          - "14"
    commands:
      - node -v
      - npm install electron@${ELECTRON_VERSION} --no-audit --progress=false --no-save
      - npm ci --no-audit --progress=false
      - npx lerna bootstrap
      - npm run build:electron
      - defaults write com.apple.CrashReporter DialogType none
      - npm run test:unit:electron-runner
      - npm run test:electron

steps:

  #
  # Node 14
  #
  - label: "Electron {{matrix.electron_version}} tests - macOS - Node {{matrix.node_version}}"
    timeout_in_minutes: 40
    agents:
      queue: macos-11
    env:
      DEVELOPER_DIR: "/Applications/Xcode12.app"
      NODE_VERSION: "{{matrix.node_version}}"
      ELECTRON_VERSION: "{{matrix.electron_version}}"
      PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
      START_LOCAL_NPM: "1"
      VERBOSE: "1"
    matrix:
      setup:
        electron_version:
          - "^12.0.0"
          - "^20.0.0"
        node_version:
          - "12"
          - "14"
    commands:
      - echo "Running on Node `node -v`"
      - npm install electron@${ELECTRON_VERSION} --no-audit --progress=false --no-save
      - npm ci --no-audit --progress=false
      - npx lerna bootstrap
      - npm run build:electron
      - defaults write com.apple.CrashReporter DialogType none
      - npm run test:unit:electron-runner
      - npm run test:electron

Set environment variables as strings
Set environment variables as strings