Skip to content

Commit 4ee9655

Browse files
committed
Actually add doc generation to CI and make clippy actually fail on warnings
1 parent 1c814af commit 4ee9655

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ jobs:
8787
- name: Run documentation tests
8888
run: cargo test --doc --all-features
8989

90+
docs:
91+
name: docs
92+
env:
93+
RUST_BACKTRACE: 1
94+
runs-on: ubuntu-latest
95+
steps:
96+
- name: Checkout repository
97+
uses: actions/checkout@v4
98+
- name: Run docs generation
99+
run: cargo doc --no-deps --document-private-items --keep-going --all-features
100+
90101
lint:
91102
name: lint
92103
runs-on: ubuntu-latest
@@ -100,12 +111,8 @@ jobs:
100111
- uses: actions-rs/cargo@v1
101112
with:
102113
command: clippy
103-
args: --features=dynamic_output,search --tests --examples
104-
- uses: actions-rs/cargo@v1
105-
with:
106-
command: clippy
107-
args: --features=dynamic_output,search --tests --examples
114+
args: --features=dynamic_output,search --tests --examples -- -D warnings
108115
- uses: actions-rs/cargo@v1
109116
with:
110117
command: clippy
111-
args: --features=static_output,search --tests --examples
118+
args: --features=static_output,search --tests --examples -- -D warnings

0 commit comments

Comments
 (0)