Skip to content

Commit

Permalink
Add cargo doc step to CI (#39)
Browse files Browse the repository at this point in the history
* Add cargo doc to CI

* use nightly toolchain
  • Loading branch information
JSorngard authored Jun 3, 2024
1 parent 205445b commit bea2c5a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,43 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: cargo fmt --check
- name: format
run: cargo fmt --check

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: cargo check --verbose
- name: check
run: cargo check --verbose

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: cargo clippy -- -D warning
- name: clippy
run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
- name: test
run: cargo test --verbose

doc:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: --cfg docsrs
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: document
run: cargo +nightly doc --all-features

coverage:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit bea2c5a

Please sign in to comment.