message: build: circleci workflows to run lint in parallel
diff: -version: 2
  -jobs:
  - build:
  +defaults: &defaults
  working_directory: ~/ng
  docker:
  - image: angular/ngcontainer
  +
  +version: 2
  +jobs:
  + lint:
  + <<: *defaults
  steps:
  - checkout:
  # After checkout, rebase on top of master.
  @@ -14,11 +17,30 @@ jobs:
  key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
  - run: npm install
  - run: npm run postinstall
  + - save_cache:
  + key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
  + paths:
  + - "node_modules"
  - run: ./node_modules/.bin/gulp lint
  - # Build twice, workaround for
  - # https://github.com/bazelbuild/bazel/issues/3114
  - - run: bazel build ... || bazel build ...
  + build:
  + <<: *defaults
  + steps:
  + - checkout
  + - restore_cache:
  + key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
  + - run: npm install
  + - run: npm run postinstall
  - save_cache:
  key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
  paths:
  - "node_modules"
  + # Build twice, workaround for
  + # https://github.com/bazelbuild/bazel/issues/3114
  + - run: bazel build ... || bazel build ...
  +
  +workflows:
  + version: 2
  + default_workflow:
  + jobs:
  + - lint
  + - build
  