Skip to content

Commit 5208cb9

Browse files
authored
Merge pull request #1556 from NobodyXu/speedup-ci
Speedup ci
2 parents ce75963 + 8a97d13 commit 5208cb9

File tree

2 files changed

+43
-38
lines changed

2 files changed

+43
-38
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
run:
6161
sudo apt-get install tree
6262
- uses: extractions/setup-just@v2
63+
- uses: taiki-e/install-action@v2
64+
with:
65+
tool: nextest
6366
- name: test
6467
env:
6568
CI: true
@@ -89,7 +92,9 @@ jobs:
8992
with:
9093
tool: nextest
9194
- name: "Test (nextest)"
92-
run: cargo nextest run --all --no-fail-fast
95+
run: |
96+
cargo nextest run --all --no-fail-fast
97+
cargo test --doc
9398
9499
test-32bit:
95100
runs-on: ubuntu-latest

justfile

+37-37
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ alias nt := nextest
1313
test: clippy check doc unit-tests journey-tests-pure journey-tests-small journey-tests-async journey-tests
1414

1515
# run all tests, without clippy, including journey tests, try building docs (and clear target on CI)
16-
ci-test: check doc clear-target unit-tests ci-journey-tests
16+
ci-test: check doc unit-tests ci-journey-tests
1717

1818
# run all journey tests, but assure these are running after `cargo clean` (and workaround a just-issue of deduplicating targets)
19-
ci-journey-tests:
20-
just clear-target journey-tests-pure journey-tests-small journey-tests-async journey-tests
19+
ci-journey-tests: journey-tests-pure journey-tests-small journey-tests-async journey-tests
2120

2221
clear-target:
2322
cargo clean
@@ -152,41 +151,42 @@ doc $RUSTDOCFLAGS="-D warnings":
152151

153152
# run all unit tests
154153
unit-tests:
155-
cargo test --all
156-
cargo test -p gix-testtools
157-
cargo test -p gix-testtools --features xz
158-
cargo test -p gix-archive --no-default-features
159-
cargo test -p gix-archive --features tar
160-
cargo test -p gix-archive --features tar_gz
161-
cargo test -p gix-archive --features zip
162-
cargo test -p gix-status-tests --features "gix-features-parallel"
163-
cargo test -p gix-worktree-state-tests --features "gix-features-parallel"
164-
cargo test -p gix-worktree-tests --features "gix-features-parallel"
154+
cargo nextest run
155+
cargo test --doc
156+
cargo nextest run -p gix-testtools
157+
cargo nextest run -p gix-testtools --features xz
158+
cargo nextest run -p gix-archive --no-default-features
159+
cargo nextest run -p gix-archive --features tar
160+
cargo nextest run -p gix-archive --features tar_gz
161+
cargo nextest run -p gix-archive --features zip
162+
cargo nextest run -p gix-status-tests --features "gix-features-parallel"
163+
cargo nextest run -p gix-worktree-state-tests --features "gix-features-parallel"
164+
cargo nextest run -p gix-worktree-tests --features "gix-features-parallel"
165165
cd gix-object; \
166-
set -ex; \
167-
cargo test; \
168-
cargo test --features verbose-object-parsing-errors
169-
cargo test -p gix-tempfile --features signals
170-
cargo test -p gix-features --all-features
171-
cargo test -p gix-ref-tests --all-features
172-
cargo test -p gix-odb --all-features
173-
cargo test -p gix-odb-tests --features gix-features-parallel
174-
cargo test -p gix-pack --all-features
175-
cargo test -p gix-pack-tests --features all-features
176-
cargo test -p gix-pack-tests --features "gix-features-parallel"
177-
cargo test -p gix-index-tests --features "gix-features-parallel"
178-
cargo test -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline
179-
cargo test -p gix-packetline --features "async-io" --test async-packetline
180-
cargo test -p gix-transport --features http-client-curl,maybe-async/is_sync
181-
cargo test -p gix-transport --features http-client-reqwest,maybe-async/is_sync
182-
cargo test -p gix-transport --features async-client
183-
cargo test -p gix-protocol --features blocking-client
184-
cargo test -p gix-protocol --features async-client
185-
cargo test -p gix --no-default-features
186-
cargo test -p gix --no-default-features --features basic,extras,comfort
187-
cargo test -p gix --features async-network-client
188-
cargo test -p gix --features blocking-network-client
189-
cargo test -p gitoxide-core --lib
166+
set -ex; \
167+
cargo nextest run; \
168+
cargo nextest run --features verbose-object-parsing-errors
169+
cargo nextest run -p gix-tempfile --features signals
170+
cargo nextest run -p gix-features --all-features
171+
cargo nextest run -p gix-ref-tests --all-features
172+
cargo nextest run -p gix-odb --all-features
173+
cargo nextest run -p gix-odb-tests --features gix-features-parallel
174+
cargo nextest run -p gix-pack --all-features
175+
cargo nextest run -p gix-pack-tests --features all-features
176+
cargo nextest run -p gix-pack-tests --features "gix-features-parallel"
177+
cargo nextest run -p gix-index-tests --features "gix-features-parallel"
178+
cargo nextest run -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline
179+
cargo nextest run -p gix-packetline --features "async-io" --test async-packetline
180+
cargo nextest run -p gix-transport --features http-client-curl,maybe-async/is_sync
181+
cargo nextest run -p gix-transport --features http-client-reqwest,maybe-async/is_sync
182+
cargo nextest run -p gix-transport --features async-client
183+
cargo nextest run -p gix-protocol --features blocking-client
184+
cargo nextest run -p gix-protocol --features async-client
185+
cargo nextest run -p gix --no-default-features
186+
cargo nextest run -p gix --no-default-features --features basic,extras,comfort
187+
cargo nextest run -p gix --features async-network-client
188+
cargo nextest run -p gix --features blocking-network-client
189+
cargo nextest run -p gitoxide-core --lib
190190

191191
# These tests aren't run by default as they are flaky (even locally)
192192
unit-tests-flaky:

0 commit comments

Comments
 (0)