# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Use a package of configuration called an orb.
orbs:
  # Declare a dependency on the welcome-orb
  welcome: circleci/welcome-orb@0.4.1
# Orchestrate or schedule a set of jobs
workflows:
  # Name the workflow "welcome"
  welcome:
    # Run the welcome/run job in its own container
    jobs:
      - welcome/run
version: 2.1

# ======================= JOBS =======================
jobs:
  gapic-generator-java-tests:
    docker:
      - image: l.gcr.io/google/bazel
    working_directory: /home/circleci/project/gapic-generator-java
    steps:
      - checkout
      - run:
          name: Builder
          command: |
            bazel build //...
  google-java-format:
    docker:
      - image: l.gcr.io/google/bazel
    steps:
      - attach_workspace:
          at: /home/circleci/workspace
      - run:
          name: Java Linter
          command: |
            bazel run //:google_java_format_verification

# ======================= WORKFLOWS =======================

workflows:
  version: 2
  run_tests:
    jobs:
      - gapic-generator-java-tests
      - google-java-format:
          requires:
            - gapic-generator-java-tests

Add builder and linter checks
[ggj][ci] Add builder and linter checks
