Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted justfile and CI workflow maintenance #1675

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
env:
CARGO_TERM_COLOR: always
CLICOLOR: '1'
NEXTEST_NO_TESTS: fail

jobs:
pure-rust-build:
Expand Down
15 changes: 5 additions & 10 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@ alias nt := nextest
# run all tests, clippy, including journey tests, try building docs
test: clippy check doc unit-tests journey-tests-pure journey-tests-small journey-tests-async journey-tests

# run all tests, without clippy, including journey tests, try building docs (and clear target)
ci-test-full: check doc unit-tests clear-target ci-journey-tests

# run all tests, without clippy, and try building docs (without clearing the target)
# run all tests, without clippy, and try building docs
ci-test: check doc unit-tests

# run all journey tests
# these should be run in a fresh clone or after `cargo clean`
# (and workaround a just-issue of deduplicating targets)
# run all journey tests - should be run in a fresh clone or after `cargo clean`
ci-journey-tests: journey-tests-pure journey-tests-small journey-tests-async journey-tests

clear-target:
Expand Down Expand Up @@ -191,7 +186,7 @@ unit-tests:
cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv
cargo nextest run -p gix --features async-network-client
cargo nextest run -p gix --features blocking-network-client
cargo nextest run -p gitoxide-core --lib
cargo nextest run -p gitoxide-core --lib --no-tests=warn

# These tests aren't run by default as they are flaky (even locally)
unit-tests-flaky:
Expand Down Expand Up @@ -245,10 +240,10 @@ audit:
cargo deny check advisories bans licenses sources

# run tests with `cargo nextest` (all unit-tests, no doc-tests, faster)
nextest *FLAGS="--all":
nextest *FLAGS="--workspace":
cargo nextest run {{ FLAGS }}

summarize EXPRESSION="all()": (nextest "--all --run-ignored all --no-fail-fast --status-level none --final-status-level none -E '" EXPRESSION "'")
summarize EXPRESSION="all()": (nextest "--workspace --run-ignored all --no-fail-fast --status-level none --final-status-level none -E '" EXPRESSION "'")

# run nightly rustfmt for its extra features, but check that it won't upset stable rustfmt
fmt:
Expand Down
Loading