steps:

# Install common dependencies.
- name: 'node:16'
  id: 'yarn-common'
  entrypoint: 'yarn'
  args: ['install']

# Install tfjs dependencies.
- name: 'node:16'
  dir: 'mobilenet'
  entrypoint: 'yarn'
  id: 'yarn'
  args: ['install']
  waitFor: ['yarn-common']

# Lint.
- name: 'node:16'
  dir: 'mobilenet'
  entrypoint: 'yarn'
  id: 'lint'
  args: ['lint']
  waitFor: ['yarn']

# Build.
- name: 'node:16'
  dir: 'mobilenet'
  entrypoint: 'yarn'
  id: 'build'
  args: ['build']
  waitFor: ['yarn']

# Run tests.
- name: 'node:16'
  dir: 'mobilenet'
  entrypoint: 'yarn'
  id: 'test'
  args: ['test']
  waitFor: ['yarn']

# General configuration
timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
substitutions:
  _NIGHTLY: ''
options:
  logStreamingOption: 'STREAM_ON'
  substitution_option: 'ALLOW_LOOSE'
