Skip to content

Commit 3b1e2e3

Browse files
check docs warnings in CI (#180)
* check docs warnings in CI * works * format
1 parent a160f2a commit 3b1e2e3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,25 @@ jobs:
6868
with:
6969
command: fmt
7070
args: --all -- --check
71+
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
7172
- name: Run clippy
7273
uses: actions-rs/cargo@v1
7374
with:
7475
command: clippy
7576
args: --all -- -D warnings
76-
if: matrix.rust == 'stable'
77+
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
78+
- name: Run rustdoc
79+
uses: actions-rs/cargo@v1
80+
with:
81+
command: rustdoc
82+
args: -- -D warnings
83+
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
7784
- name: Build with docs stub
78-
if: "contains(matrix.os, 'ubuntu') && matrix.php == '8.1'"
7985
env:
8086
DOCS_RS:
8187
run:
8288
cargo clean && cargo build
89+
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
8390
build-zts:
8491
name: Build with ZTS
8592
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)