Skip to content

Commit

Permalink
CI: Build and test (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh authored Feb 27, 2024
1 parent ebc178f commit d0d8b0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/fendermint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ jobs:
make:
- name: Clippy
task: check-clippy
- name: Test
task: test
# Technically it's not necessary to build, testing would be fine on its own.
# However, tests bring in dev-dependencies, and without them something might not compile,
# which we want to catch as it would mean the `cargo build` in the docs would fail.
# Doing it a one step so build artifacts can be reused by the tests, minimising the overhead.
- name: Build and Test
task: build test
# Tests that involve docker.
- name: End-to-End
task: e2e
exclude:
Expand Down Expand Up @@ -97,4 +102,4 @@ jobs:
- name: ${{ matrix.make.name }}
env:
PROMTAIL_CLIENT_URL: ${{ secrets.PROMTAIL_CLIENT_URL }}
run: cd fendermint && make ${{ matrix.make.task }}
run: cd fendermint && make ${{ matrix.make.task }}
2 changes: 1 addition & 1 deletion fendermint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BUILDX_FLAGS ?=
# Set to the `<repo>/<image>:<tag>` label the image.
BUILDX_TAG ?= fendermint:latest

all: test build diagrams
all: lint build test diagrams docker-build

diagrams:
make -C ../docs/fendermint/diagrams diagrams
Expand Down
3 changes: 1 addition & 2 deletions fendermint/testing/materializer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ bollard = { workspace = true }
ethers = { workspace = true }
fvm_shared = { workspace = true }
hex = { workspace = true }
lazy_static = { workspace = true }
multihash = { workspace = true }
serde = { workspace = true }
serde_with = { workspace = true }
Expand All @@ -25,7 +26,6 @@ tendermint-rpc = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }

lazy_static = { workspace = true, optional = true }
arbitrary = { workspace = true, optional = true }
quickcheck = { workspace = true, optional = true }

Expand Down Expand Up @@ -60,7 +60,6 @@ default = []
arb = [
"arbitrary",
"quickcheck",
"lazy_static",
"fvm_shared/arb",
"fendermint_testing/arb",
"fendermint_vm_genesis/arb",
Expand Down

0 comments on commit d0d8b0c

Please sign in to comment.