30
30
with :
31
31
components : rust-docs
32
32
33
+ - uses : Swatinem/rust-cache@v2
34
+ with :
35
+ cache-on-failure : true
36
+
33
37
- name : Run cargo rustdoc
34
38
run : cargo rustdoc -- -D warnings
35
39
40
+ doctest : # doctest are no supported in cargo nextest yet. https://github.com/nextest-rs/nextest/issues/16
41
+ name : Doctests
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - name : Checkout sources
45
+ uses : actions/checkout@v4
46
+
47
+ - name : Install rust
48
+ uses : dtolnay/rust-toolchain@stable
49
+
50
+ - uses : Swatinem/rust-cache@v2
51
+ with :
52
+ cache-on-failure : true
53
+
54
+ - name : Run doctests
55
+ run : cargo test --doc
56
+
36
57
clippy :
37
58
name : Clippy
38
59
runs-on : ubuntu-latest
44
65
uses : dtolnay/rust-toolchain@stable
45
66
with :
46
67
components : clippy
47
-
68
+ - uses : Swatinem/rust-cache@v2
69
+ with :
70
+ cache-on-failure : true
48
71
- name : Install dependencies
49
72
run : sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config
50
73
- name : Set PKG_CONFIG_PATH
@@ -104,6 +127,11 @@ jobs:
104
127
- name : Install rust
105
128
uses : dtolnay/rust-toolchain@stable
106
129
130
+ - uses : Swatinem/rust-cache@v2
131
+ with :
132
+ cache-on-failure : true
133
+ - uses : taiki-e/install-action@nextest
134
+
107
135
- name : Remove msys64 # Workaround to resolve link error with C:\msys64\mingw64\bin\libclang.dll
108
136
if : runner.os == 'Windows'
109
137
run : Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
@@ -113,7 +141,6 @@ jobs:
113
141
run : choco install llvm -y
114
142
115
143
- name : Mark working directory as read-only
116
- # to ensure that the tests always use a temporary directory
117
144
if : runner.os == 'Linux'
118
145
run : |
119
146
mkdir -p target
@@ -124,8 +151,8 @@ jobs:
124
151
125
152
- name : Run rocksdb tests
126
153
run : |
127
- cargo test --all
128
- cargo test --all --features multi-threaded-cf
154
+ cargo nextest run --all
155
+ cargo nextest run --all --features multi-threaded-cf
129
156
130
157
- name : Mark working directory as writable
131
158
if : runner.os == 'Linux'
@@ -135,7 +162,6 @@ jobs:
135
162
run : cargo clean
136
163
137
164
- name : Mark working directory as read-only
138
- # to ensure that the tests always use a temporary directory
139
165
if : runner.os == 'Linux'
140
166
run : |
141
167
mkdir -p target
@@ -145,7 +171,7 @@ jobs:
145
171
146
172
- name : Run rocksdb tests (jemalloc)
147
173
if : runner.os != 'Windows'
148
- run : cargo test --all --features jemalloc
174
+ run : cargo nextest run --all --features jemalloc
149
175
150
176
- name : Mark working directory as writable
151
177
if : runner.os == 'Linux'
0 commit comments