Skip to content

Commit 8fdbdec

Browse files
authored
opt(make): unify the testing tools used in both development and CI (#1681) (#1682)
* opt(make): unify the testing tools used in both development and CI (#1681) * chore: use `make test` in `ci test`
1 parent 41bb0b2 commit 8fdbdec

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
tool: cargo-nextest
4444
- name: Running tests
45-
run: cargo nextest run --locked --all --no-fail-fast --exclude=fil_builtin_actors_bundle
45+
run: make test
4646

4747
build:
4848
runs-on: ubuntu-latest

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ toolchain:
99
rustup show active-toolchain || rustup toolchain install
1010
.PHONY: toolchain
1111

12+
install-nextest:
13+
@command -v cargo-nextest >/dev/null 2>&1 || cargo install cargo-nextest --locked
14+
.PHONY: install-nextest
15+
1216
# Run cargo fmt
1317
rustfmt: toolchain
1418
cargo fmt --all --check
@@ -21,9 +25,12 @@ check: toolchain
2125
cargo clippy --all --all-targets -- -D warnings
2226
cargo clippy --all -- -D warnings
2327

28+
# NOTE: nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16,
29+
# enable once doc tests are added: `cargo test --doc`
30+
2431
# Run cargo test
25-
test: toolchain
26-
cargo test --workspace
32+
test: toolchain install-nextest
33+
cargo nextest run --workspace --no-fail-fast
2734

2835
docker-builder:
2936
$(DOCKER) buildx build $(DOCKER_PLATFORM) . -t $(DOCKER_IMAGE_NAME); \

0 commit comments

Comments
 (0)