File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 53
53
- name : Checkout
54
54
uses : actions/checkout@v3
55
55
- name : Rust Cache
56
- uses : Swatinem/rust-cache@v2.2.0
56
+ uses : Swatinem/rust-cache@v2
57
57
with :
58
58
cache-on-failure : true
59
59
- name : Build Nydus
@@ -351,12 +351,14 @@ jobs:
351
351
- name : Checkout
352
352
uses : actions/checkout@v3
353
353
- name : Rust Cache
354
- uses : Swatinem/rust-cache@v2.2.0
354
+ uses : Swatinem/rust-cache@v2
355
355
with :
356
356
cache-on-failure : true
357
+ - name : Install cargo nextest
358
+ uses : taiki-e/install-action@nextest
357
359
- name : Unit Test
358
360
run : |
359
- make ut
361
+ make ut-nextest
360
362
361
363
nydus-unit-test-coverage :
362
364
runs-on : ubuntu-latest
@@ -365,7 +367,7 @@ jobs:
365
367
steps :
366
368
- uses : actions/checkout@v3
367
369
- name : Rust Cache
368
- uses : Swatinem/rust-cache@v2.2.0
370
+ uses : Swatinem/rust-cache@v2
369
371
with :
370
372
cache-on-failure : true
371
373
- name : Install cargo-llvm-cov
Original file line number Diff line number Diff line change @@ -109,8 +109,13 @@ install: release
109
109
@sudo install -m 755 target/release/nydus-image $(INSTALL_DIR_PREFIX ) /nydus-image
110
110
@sudo install -m 755 target/release/nydusctl $(INSTALL_DIR_PREFIX ) /nydusctl
111
111
112
+ # unit test
112
113
ut : .release_version
113
- TEST_WORKDIR_PREFIX=$(TEST_WORKDIR_PREFIX ) RUST_BACKTRACE=1 ${CARGO} test --workspace $(EXCLUDE_PACKAGES ) $(CARGO_COMMON ) $(CARGO_BUILD_FLAGS ) -- --skip integration --nocapture --test-threads=8
114
+ TEST_WORKDIR_PREFIX=$(TEST_WORKDIR_PREFIX ) RUST_BACKTRACE=1 ${CARGO} test --no-fail-fast --workspace $(EXCLUDE_PACKAGES ) $(CARGO_COMMON ) $(CARGO_BUILD_FLAGS ) -- --skip integration --nocapture --test-threads=8
115
+
116
+ # you need install cargo nextest first from: https://nexte.st/book/pre-built-binaries.html
117
+ ut-nextest : .release_version
118
+ TEST_WORKDIR_PREFIX=$(TEST_WORKDIR_PREFIX ) RUST_BACKTRACE=1 ${CARGO} nextest run --no-fail-fast --filter-expr ' test(test) - test(integration)' --workspace $(EXCLUDE_PACKAGES ) $(CARGO_COMMON ) $(CARGO_BUILD_FLAGS ) --test-threads 8
114
119
115
120
# install test dependencies
116
121
pre-coverage :
You can’t perform that action at this time.
0 commit comments