Skip to content

Commit 881b601

Browse files
authored
Merge pull request #1675 from EliahKagan/run-ci/when-no-tests
Assorted justfile and CI workflow maintenance
2 parents 4d293cb + eeccb4b commit 881b601

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ permissions:
1919
env:
2020
CARGO_TERM_COLOR: always
2121
CLICOLOR: '1'
22+
NEXTEST_NO_TESTS: fail
2223

2324
jobs:
2425
pure-rust-build:

justfile

+5-10
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@ alias nt := nextest
1212
# run all tests, clippy, including journey tests, try building docs
1313
test: clippy check doc unit-tests journey-tests-pure journey-tests-small journey-tests-async journey-tests
1414

15-
# run all tests, without clippy, including journey tests, try building docs (and clear target)
16-
ci-test-full: check doc unit-tests clear-target ci-journey-tests
17-
18-
# run all tests, without clippy, and try building docs (without clearing the target)
15+
# run all tests, without clippy, and try building docs
1916
ci-test: check doc unit-tests
2017

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

2621
clear-target:
@@ -191,7 +186,7 @@ unit-tests:
191186
cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv
192187
cargo nextest run -p gix --features async-network-client
193188
cargo nextest run -p gix --features blocking-network-client
194-
cargo nextest run -p gitoxide-core --lib
189+
cargo nextest run -p gitoxide-core --lib --no-tests=warn
195190

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

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

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

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

0 commit comments

Comments
 (0)