<commit_before>steps:

  - group: "Electron Tests"
    steps:
      #
      # Node 14
      #
      - label: "Electron 12 tests - macOS - Node 14"
        timeout_in_minutes: 40
        agents:
          queue: macos-11
        env:
          DEVELOPER_DIR: "/Applications/Xcode12.app"
          ELECTRON_VERSION: "^12.0.0"
          PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
          START_LOCAL_NPM: 1
          VERBOSE: 1
        commands:
          - 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

      - label: "Electron 20 tests - macOS - Node 14"
        timeout_in_minutes: 40
        agents:
          queue: macos-11
        env:
          DEVELOPER_DIR: "/Applications/Xcode12.app"
          ELECTRON_VERSION: "^20.0.0"
          PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
          START_LOCAL_NPM: 1
          VERBOSE: 1
        commands:
          - 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<commit_msg>Add tests on Node 12, using Buildkite build matrix<commit_after>steps:

  - group: "Electron Tests"
    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
{'fraction_non_alphanumeric': 0.09378531073446328, 'fraction_numerical': 0.022975517890772127, 'mean_word_length': 1.6245059288537549, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4531291', 'n_tokens_mistral': 891, 'n_tokens_neox': 783, 'n_words': 186}