aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus-honeypot@unterwaditzer.net>2021-11-26 18:11:43 +0100
committerMarkus Unterwaditzer <markus-honeypot@unterwaditzer.net>2021-11-26 18:13:09 +0100
commit029c13426634e58adb3996c9a5e4d79c3e8437f2 (patch)
tree30df194acd76ab0fcccd0668d1fa839d1646d7d4 /.github/workflows
parent14e392f8ed9d85a2e1c91857e223473a290ac480 (diff)
update ci to take care of broken doc refs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml31
1 files changed, 19 insertions, 12 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 46807e7..c94bcf2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -16,7 +16,6 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
-
test:
name: Test Suite
runs-on: ubuntu-latest
@@ -29,10 +28,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- - uses: actions-rs/cargo@v1
- with:
- command: test
- args: --all-features
+ - run: cargo test --all-features
fmt:
name: Rustfmt
@@ -45,10 +41,7 @@ jobs:
toolchain: stable
override: true
- run: rustup component add rustfmt
- - uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ - run: cargo fmt --all -- --check
clippy:
name: Clippy
@@ -61,7 +54,21 @@ jobs:
toolchain: stable
override: true
- run: rustup component add clippy
- - uses: actions-rs/cargo@v1
+ - run: cargo clippy -- -D warnings
+
+ rustdoc:
+ name: rustdoc
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
with:
- command: clippy
- args: -- -D warnings
+ profile: minimal
+ toolchain: stable
+ override: true
+
+ # assert cargo doc succeeds
+ - run: cargo doc
+
+ # assert there are no warnings
+ - run: '[ -z "$(cargo doc || grep warning)" ]'