ci: run tests on build
This commit is contained in:
parent
fcaaae705d
commit
fdc2e4a67a
@ -35,15 +35,39 @@ commands:
|
|||||||
paths:
|
paths:
|
||||||
- /var/tmp/filecoin-proof-parameters/
|
- /var/tmp/filecoin-proof-parameters/
|
||||||
jobs:
|
jobs:
|
||||||
mod-tidy-check:
|
test:
|
||||||
executor: golang
|
executor: golang
|
||||||
|
environment:
|
||||||
|
RUST_LOG: info
|
||||||
steps:
|
steps:
|
||||||
- install-build-dependencies
|
- install-build-dependencies
|
||||||
- download-groth-params-and-verifying-keys
|
- download-groth-params-and-verifying-keys
|
||||||
|
- run: go test -v -timeout 10m ./...
|
||||||
|
mod-tidy-check:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
- go/mod-download
|
- go/mod-download
|
||||||
- go/mod-tidy-check
|
- go/mod-tidy-check
|
||||||
|
gofmt-check:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- go/mod-download
|
||||||
|
- run:
|
||||||
|
command: "! go fmt ./... 2>&1 | read"
|
||||||
|
lint-check:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- go/mod-download
|
||||||
|
- go/install-golangci-lint:
|
||||||
|
gobin: $HOME/.local/bin
|
||||||
|
version: 1.23.8
|
||||||
|
- run:
|
||||||
|
command: $HOME/.local/bin/golangci-lint run -v --concurrency 2
|
||||||
workflows:
|
workflows:
|
||||||
version: 2.1
|
version: 2.1
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- mod-tidy-check
|
- mod-tidy-check
|
||||||
|
- lint-check
|
||||||
|
- gofmt-check
|
||||||
|
- test
|
||||||
|
Loading…
Reference in New Issue
Block a user