bitbucket.org/ai69/amoy@v0.2.3/.circleci/config.yml (about)

     1  version: 2.1
     2  orbs:
     3    go: circleci/go@1.7.0
     4  jobs:
     5    build:
     6      parameters:
     7        go-version:
     8          type: string
     9      working_directory: ~/repo
    10      docker:
    11        - image: cimg/base:current-20.04
    12        - image: kennethreitz/httpbin:latest
    13      steps:
    14        - checkout
    15        - go/install:
    16            version: << parameters.go-version >>
    17        - go/load-cache
    18        - go/mod-download
    19        - go/save-cache
    20        - run:
    21            name: Run Test
    22            environment:
    23              TEST_HTTPBIN_URL: "http://localhost:80"
    24            command: |
    25              go version
    26              go test -v -race -cover -covermode=atomic -count 1 .
    27              go test -parallel=4 -run="none" -benchtime="2s" -benchmem -bench .
    28  
    29  workflows:
    30    build-test:
    31      jobs:
    32        - build:
    33            name: "Build with go << matrix.go-version >>"
    34            matrix:
    35              parameters:
    36                go-version:
    37                  - "1.16.15"
    38                  - "1.17.13"
    39                  - "1.18.10"
    40                  - "1.19.6"
    41                  - "1.20.1"