docs: remove empty Unreleased section before 0.3.0 release #18
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| quality: | |
| name: Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - run: cargo fmt --check | |
| - run: cargo clippy --all-targets --all-features | |
| - name: Enforce no panics in library code | |
| run: | | |
| awk ' | |
| /^[[:space:]]*\/\// { next } | |
| /^#\[cfg\(test\)\]/ { in_test = 1 } | |
| in_test && /^}/ { in_test = 0 } | |
| !in_test && /expect\(|unwrap\(|panic!/ { print "line " FNR ": " $0; bad = 1 } | |
| END { | |
| if (bad) { | |
| print "FAIL: unwrap()/expect()/panic! found in non-test, non-doc code" > "/dev/stderr" | |
| exit 1 | |
| } | |
| print "OK: no unwrap()/expect()/panic! in library code" | |
| } | |
| ' src/lib.rs | |
| machete: | |
| name: Dead dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # stable | |
| with: | |
| toolchain: stable | |
| - run: cargo install cargo-machete --version 0.9.2 --locked | |
| - run: cargo machete | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # stable | |
| with: | |
| toolchain: stable | |
| - run: cargo test --all-features | |
| audit: | |
| name: Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # stable | |
| with: | |
| toolchain: stable | |
| - uses: actions-rust-lang/audit@72c09e02f132669d52284a3323acdb503cfc1a24 # v1.2.7 | |
| name: Audit Rust Dependencies |