Debian Codegraph @

.circleci/config.yml

raw
1 version: 2.1
2 orbs:
3 codecov: codecov/[email protected]
4 jobs:
5 build:
6 docker:
7 - image: golang:1.13
8 working_directory: /work
9 steps:
10 - checkout
11 - run:
12 name: Install golangci-lint
13 environment:
14 GOLANGCI_LINT_VERSION: 1.21.0
15 command: |
16 wget -q https://github.com/golangci/golangci-lint/releases/download/v$GOLANGCI_LINT_VERSION/golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz \
17 -O /tmp/golangci-lint.tar.gz
18 tar --strip-components=1 -C $GOPATH/bin -xzf /tmp/golangci-lint.tar.gz
19 golangci-lint --version
20 - run:
21 name: Code analysis
22 command: golangci-lint run -v --config .golangci.yml ./...
23 - run:
24 name: Test
25 command: go test -mod=readonly -v -race -count=1 -cover -coverprofile=profile.cov ./...
26 - codecov/upload:
27 file: /work/profile.cov