<commit_before># In this directory, run the following command to build this builder.
# $ gcloud builds submit

steps:
# Build all supported versions.
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=8.12.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-8.12.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=8.4.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-8.4.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=9.11.2'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-9.11.2'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=10.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-10.10.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=12.18.3'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-12.18.3'
  - '--tag=gcr.io/$PROJECT_ID/yarn:lts'
  - '--tag=gcr.io/$PROJECT_ID/nodejs/yarn'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=14.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-14.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:latest'
  - '--tag=gcr.io/$PROJECT_ID/yarn:current'
  - '.'
  
# Print for each version
- name: 'gcr.io/$PROJECT_ID/yarn:node-8.12.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-8.4.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-9.11.2'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-10.10.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-12.18.3'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-14.10.0'
  args: ['--version']

# Test the examples with :latest

# hello_world
- name: 'gcr.io/$PROJECT_ID/yarn:latest'
  args: ['install']
  dir: 'examples/hello_world'
- name: 'gcr.io/$PROJECT_ID/yarn:latest'
  args: ['test']<commit_msg>Removed extraneous whitespace.<commit_after># In this directory, run the following command to build this builder.
# $ gcloud builds submit

steps:
# Build all supported versions.
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=8.12.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-8.12.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=8.4.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-8.4.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=9.11.2'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-9.11.2'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=10.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-10.10.0'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=12.18.3'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-12.18.3'
  - '--tag=gcr.io/$PROJECT_ID/yarn:lts'
  - '--tag=gcr.io/$PROJECT_ID/nodejs/yarn'
  - '.'
- name: 'gcr.io/cloud-builders/docker'
  args:
  - 'build'
  - '--build-arg=NODE_VERSION=14.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:node-14.10.0'
  - '--tag=gcr.io/$PROJECT_ID/yarn:latest'
  - '--tag=gcr.io/$PROJECT_ID/yarn:current'
  - '.'

# Print for each version
- name: 'gcr.io/$PROJECT_ID/yarn:node-8.12.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-8.4.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-9.11.2'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-10.10.0'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-12.18.3'
  args: ['--version']
- name: 'gcr.io/$PROJECT_ID/yarn:node-14.10.0'
  args: ['--version']

# Test the examples with :latest

# hello_world
- name: 'gcr.io/$PROJECT_ID/yarn:latest'
  args: ['install']
  dir: 'examples/hello_world'
- name: 'gcr.io/$PROJECT_ID/yarn:latest'
  args: ['test']
{'fraction_non_alphanumeric': 0.23490640653836015, 'fraction_numerical': 0.041128394410756657, 'mean_word_length': 2.9686192468619246, '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': '472105', 'n_tokens_mistral': 1861, 'n_tokens_neox': 1796, 'n_words': 209}