impr(ci): improve rust build in CI #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust - Quality | |
| on: [push, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| clippy: | |
| name: "clippy" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup component add clippy | |
| - name: Run clippy | |
| run: cargo clippy --all-features | |
| fmt: | |
| name: "fmt" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run formatter | |
| run: cargo fmt --all --check | |
| doc: | |
| name: "doc" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run doc | |
| run: cargo doc --all-features --no-deps | |
| env: | |
| RUSTDOCFLAGS: "-D warnings" | |
| tests: | |
| name: "tests" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: cargo test --verbose --all-features | |
| outdated: | |
| name: "outdated" | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cargo-outdated | |
| run: cargo install cargo-outdated | |
| - name: Run cargo-outdated | |
| run: cargo outdated -d 1 |