Skip to content

Commit 001b7d3

Browse files
fix(docs): add doc test ci
Signed-off-by: Anton Engelhardt <[email protected]>
1 parent 4f36bf1 commit 001b7d3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/rust.yml

+23
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,29 @@ jobs:
340340
--mode validate \
341341
-c envoy.yaml
342342
343+
doc-test:
344+
runs-on: ubuntu-latest
345+
346+
steps:
347+
- uses: actions/checkout@v4
348+
349+
- name: Install dependencies
350+
if: ${{ env.ACT }}
351+
run: |
352+
curl -OL https://static.rust-lang.org/rustup/rustup-init.sh
353+
chmod +x ./rustup-init.sh
354+
./rustup-init.sh -y
355+
rm rustup-init.sh
356+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
357+
358+
- name: Update Rust
359+
run: |
360+
rustup toolchain install stable --component clippy --component rustfmt
361+
rustup target add wasm32-wasi
362+
363+
- name: Run Cargo Doc Test
364+
run: cargo test --doc
365+
343366
reactor:
344367
runs-on: ubuntu-latest
345368

0 commit comments

Comments
 (0)