message: Move job definition to jobs section
diff: -####
  +####################
  # Defaults
  -####
  +####################
  defaults: &js_defaults
  docker:
  - image: circleci/node:lts
  @@ -10,10 +10,10 @@ defaults: &js_defaults
  working_directory: ~/material-ui-pickers
  version: 2
  -jobs:
  - ####
  +####################
  # Custom jobs
  - ####
  +####################
  +jobs:
  checkout_code:
  <<: *js_defaults
  steps:
  @@ -27,7 +27,6 @@ jobs:
  steps:
  - attach_workspace:
  at: .
  -
  - restore_cache:
  name: Restore Cache
  keys:
  @@ -55,12 +54,35 @@ jobs:
  working_directory: ~/material-ui-pickers
  steps:
  + - attach_workspace:
  + at: .
  - run: yarn workspace docs build
  - run: yarn workspace docs start & npx wait-on http://localhost:3000 && yarn e2e:run --record
  -####
  -# Worflow
  -####
  + test_moment:
  + <<: *js_defaults
  + steps:
  + - attach_workspace:
  + at: .
  + - run: cd lib && yarn test:moment
  +
  + test_date-fns:
  + <<: *js_defaults
  + steps:
  + - attach_workspace:
  + at: .
  + - run: cd lib && yarn test:date-fns
  +
  + test_luxon:
  + <<: *js_defaults
  + steps:
  + - attach_workspace:
  + at: .
  + - run: cd lib && yarn test:luxon
  +
  +####################
  +# Workflow
  +####################
  workflows:
  version: 2
  build_and_test:
  @@ -77,26 +99,11 @@ workflows:
  - test_moment:
  requires:
  - javascript
  - <<: *js_defaults
  - steps:
  - - attach_workspace:
  - at: .
  - - run: cd lib && yarn test:moment
  - test_date-fns:
  requires:
  - javascript
  - <<: *js_defaults
  - steps:
  - - attach_workspace:
  - at: .
  - - run: cd lib && yarn test:date-fns
  - test_luxon:
  requires:
  - javascript
  - <<: *js_defaults
  - steps:
  - - attach_workspace:
  - at: .
  - - run: cd lib && yarn test:luxon
  