refactor: eliminate panicky .unwrap() calls, add crate docs, migrate eprintln! to tracing #106
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: lint | |
| on: | |
| push: | |
| paths: | |
| - 'README.md' | |
| - '.github/workflows/lint.yml' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'rust-toolchain.toml' | |
| - 'crates/**' | |
| pull_request: | |
| paths: | |
| - 'README.md' | |
| - '.github/workflows/lint.yml' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'rust-toolchain.toml' | |
| - 'crates/**' | |
| jobs: | |
| deno-fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| with: | |
| persist-credentials: false | |
| - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 | |
| with: | |
| deno-version: v2.x | |
| - name: Check README.md formatting | |
| run: deno fmt --check README.md | |
| rust-lint: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| with: | |
| persist-credentials: false | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential cmake pkg-config \ | |
| libopus-dev libasound2-dev libxdo-dev \ | |
| libwebkit2gtk-4.1-dev libgtk-3-dev \ | |
| libsoup-3.0-dev libssl-dev \ | |
| libglib2.0-dev libpango1.0-dev \ | |
| libcairo2-dev libgdk-pixbuf-2.0-dev | |
| - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 | |
| - name: Check Rust formatting | |
| run: cargo fmt --all --check | |
| - name: Run Clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings |