Bump serial_test from 3.4.0 to 3.5.0 in the rust-dependencies group #215
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
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| # rust-clippy is a tool that runs a bunch of lints to catch common | |
| # mistakes in your Rust code and help improve your Rust code. | |
| # More details at https://github.com/rust-lang/rust-clippy | |
| # and https://rust-lang.github.io/rust-clippy/ | |
| name: rust-clippy analyze | |
| on: | |
| push: | |
| branches: [ "main", "*" ] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: '15 22 * * 4' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_PROFILE_TEST_DEBUG: 0 | |
| CARGO_PROFILE_RELEASE_LTO: true | |
| CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1 | |
| PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: Cargo Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y pkg-config libasound2-dev | |
| pkg-config --libs --cflags alsa | |
| - name: Install Rust toolchain | |
| run: rustup toolchain install stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-all-crates: true | |
| - name: Check | |
| run: cargo check --locked --all-features | |
| todos: | |
| name: TODO and FIXME | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Check for TODO/FIXME markers | |
| run: | | |
| set -euo pipefail | |
| ! grep -RInE 'TODO |TODO:|FIXME |FIXME:|todo |todo:|fixme |fixme:|dbg!' \ | |
| src tests Cargo.toml README.md .github/dependabot.yml .github/workflows/codecov.yml | |
| fmt: | |
| name: Rust-fmt (Cargo Format) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| run: rustup toolchain install stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-all-crates: true | |
| - name: Install rustfmt | |
| run: rustup component add rustfmt | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| rust-clippy-analyze: | |
| name: Run rust-clippy analyzing | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y pkg-config libasound2-dev | |
| pkg-config --libs --cflags alsa | |
| - name: Install Rust toolchain | |
| run: rustup toolchain install stable | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-all-crates: true | |
| - name: Install clippy | |
| run: rustup component add clippy | |
| - name: Install required cargo | |
| run: cargo install clippy-sarif sarif-fmt | |
| - name: Run rust-clippy | |
| run: | | |
| set -o pipefail | |
| cargo clippy \ | |
| --all-targets \ | |
| --all-features \ | |
| --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | |
| - name: Upload analysis results to GitHub | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: rust-clippy-results.sarif | |
| wait-for-processing: true |