github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/.circleci/config.yml (about)

     1  version: 2
     2  
     3  # https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
     4  defaults: &defaults
     5    docker:
     6      - image: cimg/go:1.17.13
     7    working_directory: /home/circleci/go/src/github.com/weaveworks/common
     8  
     9  workflows:
    10    version: 2
    11    test-build-deploy:
    12      jobs:
    13      - lint
    14      - check-protos
    15      - test
    16  
    17  jobs:
    18    lint:
    19      <<: *defaults
    20      steps:
    21      - checkout
    22      - run:
    23          name: Lint
    24          command: |
    25            make lint
    26  
    27    check-protos:
    28      machine: # executor type
    29        image: ubuntu-2204:2022.10.2
    30      working_directory: /home/circleci/go/src/github.com/weaveworks/common
    31      steps:
    32      - checkout
    33      - run:
    34          name: Check generated protobuf files
    35          command: |
    36            go version
    37            go mod vendor
    38            make check-protos
    39  
    40    test:
    41      <<: *defaults
    42      steps:
    43      - checkout
    44      - run:
    45          name: Test
    46          command: |
    47            make test