forked from aws/aws-lambda-rust-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 918 Bytes
/
check-docs.yml
File metadata and controls
39 lines (34 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Check rustdocs
# this is its own workflow since we to to use unstable
# to have the docs.rs display of feature flags
on:
push:
paths:
- 'lambda-runtime/**'
- 'lambda-runtime-api-client/**'
- 'lambda-http/**'
- 'lambda-events/**'
- 'lambda-extension/**'
- 'Cargo.toml'
pull_request:
paths:
- 'lambda-runtime/**'
- 'lambda-runtime-api-client/**'
- 'lambda-http/**'
- 'lambda-events/**'
- 'lambda-extension/**'
- 'Cargo.toml'
jobs:
build-runtime:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: Check documentation
shell: bash
env:
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
run: cargo doc --no-deps --document-private-items --all-features