check docs warnings in CI (#180)

* check docs warnings in CI

* works

* format
This commit is contained in:
David Cole 2022-11-13 21:13:25 +13:00 committed by GitHub
parent a160f2a2a0
commit 3b1e2e3848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,18 +68,25 @@ jobs:
with:
command: fmt
args: --all -- --check
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -D warnings
if: matrix.rust == 'stable'
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
- name: Run rustdoc
uses: actions-rs/cargo@v1
with:
command: rustdoc
args: -- -D warnings
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
- name: Build with docs stub
if: "contains(matrix.os, 'ubuntu') && matrix.php == '8.1'"
env:
DOCS_RS:
run:
cargo clean && cargo build
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
build-zts:
name: Build with ZTS
runs-on: ubuntu-latest