File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 31
31
test_results_url :
32
32
description : " URL of the test results artifact"
33
33
value : ${{ jobs.nextest.outputs.test_results_url }}
34
+ doctest_results_url :
35
+ description : " URL of the doctest results artifact"
36
+ value : ${{ jobs.doctest.outputs.test_results_url }}
34
37
workflow_dispatch :
35
38
36
39
concurrency :
@@ -148,4 +151,25 @@ jobs:
148
151
with :
149
152
name : test-results
150
153
path : testresults--all-features.json
151
-
154
+
155
+ doctest :
156
+ # Run doctests separately, as nextest doesn't yet (https://github.com/nextest-rs/nextest/issues/16)
157
+ outputs :
158
+ test_results_url : ${{ steps.doctest_results.outputs.artifact-url }}
159
+ runs-on : ubuntu-latest
160
+ env :
161
+ RUSTDOCFLAGS : -Dwarnings
162
+ steps :
163
+ - uses : actions/checkout@v4
164
+ - uses : dtolnay/rust-toolchain@master
165
+ with :
166
+ toolchain : ${{ env.RUST_TOOLCHAIN }}
167
+ - name : Run doc tests
168
+ run : |
169
+ RUSTC_BOOTSTRAP=1 cargo test --doc -- -Z unstable-options --format json --report-time > doctestresults--all-features.json
170
+ - name : Upload doctest results artifact
171
+ id : doctest_results
172
+ uses : actions/upload-artifact@v4
173
+ with :
174
+ name : doctest-results
175
+ path : doctestresults--all-features.json
You can’t perform that action at this time.
0 commit comments