ci: check out code before running linters

This commit is contained in:
laser 2020-04-01 16:08:59 -07:00
parent fdc2e4a67a
commit c694853ddb

View File

@ -9,7 +9,6 @@ executors:
commands: commands:
install-build-dependencies: install-build-dependencies:
steps: steps:
- checkout
- run: sudo apt-get update - run: sudo apt-get update
- run: sudo apt-get install -y jq ocl-icd-opencl-dev - run: sudo apt-get install -y jq ocl-icd-opencl-dev
- run: git submodule sync - run: git submodule sync
@ -40,23 +39,27 @@ jobs:
environment: environment:
RUST_LOG: info RUST_LOG: info
steps: steps:
- checkout
- install-build-dependencies - install-build-dependencies
- download-groth-params-and-verifying-keys - download-groth-params-and-verifying-keys
- run: go test -v -timeout 10m ./... - run: go test -v -timeout 10m ./...
mod-tidy-check: mod-tidy-check:
executor: golang executor: golang
steps: steps:
- checkout
- go/mod-download - go/mod-download
- go/mod-tidy-check - go/mod-tidy-check
gofmt-check: gofmt-check:
executor: golang executor: golang
steps: steps:
- checkout
- go/mod-download - go/mod-download
- run: - run:
command: "! go fmt ./... 2>&1 | read" command: "! go fmt ./... 2>&1 | read"
lint-check: lint-check:
executor: golang executor: golang
steps: steps:
- checkout
- go/mod-download - go/mod-download
- go/install-golangci-lint: - go/install-golangci-lint:
gobin: $HOME/.local/bin gobin: $HOME/.local/bin