Skip to content

Commit d22162c

Browse files
committed
Add cargo doc to test.sh
1 parent e374eac commit d22162c

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
env:
3434
FMT: 'false'
3535
LINT: 'false'
36+
DOC: 'true'
3637
BUILD: 'true'
3738
TEST: 'true'
3839
BUILD_FLAGS: '--locked'
@@ -43,6 +44,7 @@ jobs:
4344
env:
4445
FMT: 'false'
4546
LINT: 'false'
47+
DOC: 'true'
4648
BUILD: 'true'
4749
TEST: 'true'
4850
BUILD_FLAGS: '--locked'

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
env:
4747
FMT: 'false'
4848
LINT: 'false'
49+
DOC: 'true'
4950
BUILD: 'true'
5051
TEST: 'true'
5152
BUILD_FLAGS: '--locked'
@@ -56,6 +57,7 @@ jobs:
5657
env:
5758
FMT: 'false'
5859
LINT: 'false'
60+
DOC: 'true'
5961
BUILD: 'true'
6062
TEST: 'true'
6163
BUILD_FLAGS: '--locked'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The benchmark was generated by [a GitHub Workflow](https://github.com/KSXGitHub/
2828
* [`ncdu`](https://dev.yorhel.nl/ncdu)
2929
* [`gdu`](https://github.com/dundee/gdu) v5.0.0
3030
* `du`
31-
31+
3232
</details>
3333

3434
<figure>
@@ -69,6 +69,7 @@ Environment Variables
6969
|---------------|-------------------|---------------|-------------------------------------------------|
7070
| `FMT` | `true` or `false` | `true` | Whether to run `cargo fmt` |
7171
| `LINT` | `true` or `false` | `true` | Whether to run `cargo clippy` |
72+
| `DOC` | `true` or `false` | `false` | Whether to run `cargo doc` |
7273
| `BUILD` | `true` or `false` | `true` | Whether to run `cargo build` |
7374
| `TEST` | `true` or `false` | `true` | Whether to run `cargo test` |
7475
| `BUILD_FLAGS` | string | _(empty)_ | Space-separated list of flags for `cargo build` |

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ run_if() (
2727

2828
unit() (
2929
eval run_if "${LINT:-true}" cargo clippy "$@" -- -D warnings
30+
eval run_if "${DOC:-false}" cargo doc "$@"
3031
eval run_if "${BUILD:-true}" cargo build "${BUILD_FLAGS:-}" "$@"
3132
eval run_if "${TEST:-true}" cargo test "${TEST_FLAGS:-}" "$@"
3233
)

0 commit comments

Comments
 (0)