ci: Run cargo doc and clippy with default features, all features and no features
This commit is contained in:
parent
103f1eccc4
commit
8e0f4ace34
1 changed files with 23 additions and 9 deletions
32
.github/workflows/ci.yaml
vendored
32
.github/workflows/ci.yaml
vendored
|
@ -52,13 +52,12 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: --all ${{ matrix.feature_flag }}
|
args: --all ${{ matrix.feature_flag }}
|
||||||
|
|
||||||
style_and_docs:
|
cargo_fmt:
|
||||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
|
@ -67,18 +66,30 @@ jobs:
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
- name: fmt
|
- name: fmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
- name: clippy
|
|
||||||
uses: actions-rs/cargo@v1
|
style_and_docs:
|
||||||
with:
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
||||||
command: clippy
|
strategy:
|
||||||
args: --all-targets --all-features -- -D warnings
|
matrix:
|
||||||
- name: Docs
|
feature_flag: ["--all-features", "--no-default-features", ""]
|
||||||
run: cargo doc --no-deps
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: clippy
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
args: --all-targets ${{ matrix.feature_flag }} -- -D warnings
|
||||||
|
- name: docs
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: doc
|
||||||
|
args: --no-deps --all-targets ${{ matrix.feature_flag }} -- -D warnings
|
||||||
|
|
||||||
fuzz_read:
|
fuzz_read:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
- cargo_fmt
|
||||||
- style_and_docs
|
- style_and_docs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -126,6 +137,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
- cargo_fmt
|
||||||
- style_and_docs
|
- style_and_docs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -173,6 +185,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
- cargo_fmt
|
||||||
- style_and_docs
|
- style_and_docs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -220,6 +233,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
- cargo_fmt
|
||||||
- style_and_docs
|
- style_and_docs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
Loading…
Add table
Reference in a new issue