chore(deps): 升级依赖 #479
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| channel: | |
| - stable | |
| - beta | |
| - nightly | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.channel }} | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Test | |
| run: cargo test --all-features --verbose | |
| - name: Test (no-default-features) | |
| run: cargo test --no-default-features --verbose | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: nightly | |
| components: clippy | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Run Clippy | |
| run: cargo clippy --all-features --all-targets --verbose -- -Dwarnings | |
| - name: Run Clippy (minimal-versions) | |
| run: cargo clippy --all-features --all-targets -Z minimal-versions --verbose -- -Dwarnings | |
| - name: Run Clippy (no-default-features) | |
| run: cargo clippy --no-default-features --all-targets --verbose -- -Dwarnings | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install latest stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| - name: Run rustfmt | |
| run: cargo fmt --check | |
| deny: | |
| name: Deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install latest stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Install cargo-deny | |
| run: cargo install cargo-deny | |
| - name: Run deny | |
| run: cargo deny check | |
| udeps: | |
| name: Udeps | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust Toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: nightly | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Install cargo-udeps | |
| run: cargo install cargo-udeps | |
| - name: Run Udeps | |
| run: cargo udeps |