github.com/go-chef/chef@v0.30.1/.circleci/config.yml (about)

     1  # Golang CircleCI 2.0 configuration file
     2  #
     3  # Check https://circleci.com/docs/2.0/language-go/ for more details
     4  version: 2
     5  workflows:
     6    version: 2
     7    merge-to-master:
     8      jobs:
     9        - tester
    10        - update_tag:
    11            requires:
    12              - tester
    13            filters:
    14              branches:
    15                only: /master/
    16  jobs:
    17    update_tag:
    18      docker:
    19        - image: cimg/go:1.20
    20      working_directory: ~/go/src/github.com/go-chef/chef
    21      steps:
    22        - add_ssh_keys:
    23            fingerprints:
    24              - ${TAG_TOKEN}
    25        - checkout
    26        - run: curl -s https://api.github.com/repos/pantheon-systems/autotag/releases/latest | grep browser_download | grep Linux | cut -d '"' -f 4 | xargs curl -o ./autotag -L && chmod 755 ./autotag
    27        - run: ./autotag
    28        - run: git push --tags origin
    29    tester:
    30      docker:
    31        - image: cimg/go:1.20
    32        #### TEMPLATE_NOTE: go expects specific checkout path representing url
    33        #### expecting it in the form of
    34        ####   /go/src/github.com/circleci/go-tool
    35        ####   /go/src/bitbucket.org/circleci/go-tool
    36      working_directory: ~/go/src/github.com/go-chef/chef
    37      steps:
    38        - add_ssh_keys:
    39            fingerprints:
    40              - 35:v45:41:ba:cf:3f:7f:d5:00:0f:11:6b:4d:c0:a1:90
    41        - checkout
    42        # specify any bash command here prefixed with `run: `
    43        - run: pwd
    44        - run: env
    45        - run: ls -Rl
    46        - run: go get -t
    47        - run: go get github.com/ctdk/goiardi/chefcrypto
    48        - run: go get github.com/r3labs/diff
    49        - run: go get github.com/stretchr/testify/assert
    50        - run: go vet
    51        - run: go test
    52        - run: go test -run TestNewClientProxy2 -tags httpvar