mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Make sure doc tests run on CI (#206)
* Make sure doc tests run on CI * Run doc tests in separate step Don't need to run them for stable, beta, nightly
This commit is contained in:
parent
2d6b5dd0b8
commit
0f48f33e9d
1 changed files with 33 additions and 0 deletions
33
.github/workflows/CI.yml
vendored
33
.github/workflows/CI.yml
vendored
|
@ -148,6 +148,39 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: --all --all-features --all-targets
|
args: --all --all-features --all-targets
|
||||||
|
|
||||||
|
test-docs:
|
||||||
|
needs: check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
|
# caching
|
||||||
|
- name: Cache cargo registry
|
||||||
|
uses: actions/cache@v2.1.6
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry
|
||||||
|
key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Cache cargo index
|
||||||
|
uses: actions/cache@v2.1.6
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/git
|
||||||
|
key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Cache cargo target dir
|
||||||
|
uses: actions/cache@v2.1.6
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
# /caching
|
||||||
|
- name: Run doc tests
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --all-features --doc
|
||||||
|
|
||||||
deny-check:
|
deny-check:
|
||||||
name: cargo-deny check
|
name: cargo-deny check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue