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 85
85
- name : Checkout
86
86
uses : actions/checkout@v3
87
87
- name : Rust Cache
88
- uses : Swatinem/rust-cache@v2.2.0
88
+ uses : Swatinem/rust-cache@v2
89
89
with :
90
90
cache-on-failure : true
91
91
- name : Build Nydus
@@ -600,12 +600,14 @@ jobs:
600
600
- name : Checkout
601
601
uses : actions/checkout@v3
602
602
- name : Rust Cache
603
- uses : Swatinem/rust-cache@v2.2.0
603
+ uses : Swatinem/rust-cache@v2
604
604
with :
605
605
cache-on-failure : true
606
+ - name : Install cargo nextest
607
+ uses : taiki-e/install-action@nextest
606
608
- name : Unit Test
607
609
run : |
608
- make ut
610
+ make ut-nextest
609
611
610
612
nydus-unit-test-coverage :
611
613
runs-on : ubuntu-latest
@@ -614,7 +616,7 @@ jobs:
614
616
steps :
615
617
- uses : actions/checkout@v3
616
618
- name : Rust Cache
617
- uses : Swatinem/rust-cache@v2.2.0
619
+ uses : Swatinem/rust-cache@v2
618
620
with :
619
621
cache-on-failure : true
620
622
- 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