docs: refresh stale references found in v5.1 review pass #269
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 | |
| on: | |
| push: | |
| branches: [develop, v4-rust] | |
| pull_request: | |
| branches: [develop, v4-rust] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| RUST_BACKTRACE: short | |
| jobs: | |
| fmt: | |
| name: cargo fmt --check | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --check | |
| clippy: | |
| name: cargo clippy | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: System deps for tauri-build | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| libsoup-3.0-dev | |
| # tauri-build resolves bundle resources at compile time; the | |
| # frontend/dist path must exist or the build script aborts. | |
| - name: Build frontend bundle | |
| working-directory: frontend | |
| run: | | |
| npm install | |
| npm run build | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| test: | |
| name: cargo test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, windows-2022, macos-14] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| # The macos-14 runner image ships a `cargo` shim ahead of | |
| # ~/.cargo/bin that forwards to `rustup-init` and rejects subcommands | |
| # like `test`. Set the default toolchain explicitly and prepend | |
| # ~/.cargo/bin to PATH for every subsequent step. | |
| - name: System deps for tauri-build (linux) | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| libsoup-3.0-dev | |
| # cache-bin: false skips caching $CARGO_HOME/bin. Without this, a | |
| # stale cache from a prior failed run can overwrite the freshly | |
| # installed rustup shims on macos-14 with a bare rustup-init binary, | |
| # which then rejects `cargo test` as an "unexpected argument". | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-bin: "false" | |
| # Skip the tauri shell on linux/mac in test pass — only the core + | |
| # cli need verification here. The desktop bundle is exercised by | |
| # the release workflow, where signed/notarised builds matter. | |
| - run: cargo test -p token-dashboard-core -p token-dashboard-cli | |
| deny: | |
| name: cargo-deny (advisories, licenses, sources) | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check advisories licenses sources bans | |
| # cargo-audit job removed: cargo-deny above already runs `check advisories` | |
| # against the same RustSec database and honors deny.toml's ignore list for | |
| # unmaintained transitive deps (tauri's gtk-rs and unic-* families, | |
| # proc-macro-error). Keeping both forced us to maintain two ignore lists. |