a39355c1fc 2026-01-02 1: name: rust-clippy analyze
a39355c1fc 2026-01-02 2:
a39355c1fc 2026-01-02 3: on:
a39355c1fc 2026-01-02 4: push:
a39355c1fc 2026-01-02 5: branches: [ "master" ]
a39355c1fc 2026-01-02 6: pull_request:
a39355c1fc 2026-01-02 7: # The branches below must be a subset of the branches above
a39355c1fc 2026-01-02 8: branches: [ "master" ]
a39355c1fc 2026-01-02 9:
a39355c1fc 2026-01-02 10: jobs:
a39355c1fc 2026-01-02 11: rust-clippy-test:
a39355c1fc 2026-01-02 12: name: Run rust-clippy analyzing
a39355c1fc 2026-01-02 13: runs-on: ubuntu-latest
a39355c1fc 2026-01-02 14: permissions:
a39355c1fc 2026-01-02 15: contents: read
a39355c1fc 2026-01-02 16: security-events: write
a39355c1fc 2026-01-02 17: steps:
a39355c1fc 2026-01-02 18: - name: Checkout code
a39355c1fc 2026-01-02 19: uses: actions/checkout@v6
a39355c1fc 2026-01-02 20:
a39355c1fc 2026-01-02 21: - name: Install Rust toolchain
699bd9270f 2026-01-02 22: uses: hecrj/setup-rust-action@v2
a39355c1fc 2026-01-02 23: with:
a39355c1fc 2026-01-02 24: rust-version: stable
a39355c1fc 2026-01-02 25:
a39355c1fc 2026-01-02 26: - uses: Swatinem/rust-cache@v2
a39355c1fc 2026-01-02 27:
a39355c1fc 2026-01-02 28: - name: Run tests
a39355c1fc 2026-01-02 29: run: cargo test --all-features
a39355c1fc 2026-01-02 30:
a39355c1fc 2026-01-02 31: - name: Run rust-clippy
a39355c1fc 2026-01-02 32: run: cargo clippy --all-features