Skip to content

Commit

Permalink
ci workflow - improvements on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elpiel committed Aug 10, 2022
1 parent 5f16cc8 commit 9241043
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --no-deps -- -D warnings
test:
name: Test

Expand Down Expand Up @@ -106,8 +106,10 @@ jobs:

# Detect cases where documentation links don't resolve and such.
doc:
name: Docs
name: Docs check
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -116,12 +118,18 @@ jobs:
# Docs.rs uses nightly, which allows for easier syntax for linking to functions.
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1

- name: Docs --all-features
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --no-deps

- name: Docs --no-default-features
uses: actions-rs/cargo@v1
with:
# Need to use `cargo rustdoc` to actually get it to respect -D
# warnings... Note: this also requires nightly.
command: rustdoc
args: -- -D warnings
command: doc
args: --no-default-features --no-deps

codecov:
name: Generate code coverage
Expand Down

0 comments on commit 9241043

Please sign in to comment.