Bump rubocop from 1.85.1 to 1.86.0 in the bundler-deps group #407
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: CI | |
| "on": | |
| push: | |
| branches: | |
| - trunk | |
| pull_request: | |
| branches: | |
| - trunk | |
| schedule: | |
| - cron: "0 0 * * WED" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read # needed to checkout contents | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-latest | |
| - macos-15 | |
| - macos-14 | |
| env: | |
| RUSTFLAGS: -D warnings | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master | |
| with: | |
| toolchain: stable | |
| - name: Compile | |
| run: cargo build --verbose | |
| - name: Compile tests | |
| run: cargo test --no-run | |
| - name: Test | |
| run: cargo test | |
| - name: Test with all features | |
| run: cargo test --all-features | |
| - name: Test with no default features | |
| run: cargo test --no-default-features | |
| - name: Check example | |
| run: cargo check --examples | |
| - name: Build examples | |
| run: cargo build --examples | |
| - name: Run example | |
| run: cargo run --example enumerate_system_dirs -q | |
| build-msrv: | |
| name: Build (MSRV) | |
| runs-on: macos-latest | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| RUSTFLAGS: -D warnings | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master | |
| with: | |
| toolchain: "1.85.0" | |
| - name: Compile | |
| run: cargo build --verbose | |
| build-non-apple: | |
| name: Build (non-Apple platforms) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| env: | |
| RUSTFLAGS: -D warnings | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master | |
| with: | |
| toolchain: stable | |
| - name: Compile | |
| run: cargo build --verbose | |
| - name: Compile tests | |
| run: cargo test --no-run | |
| - name: Test | |
| run: cargo test | |
| - name: Test with all features | |
| run: cargo test --all-features | |
| - name: Test with no default features | |
| run: cargo test --no-default-features | |
| - name: Build documentation | |
| run: cargo doc | |
| - name: Check example | |
| run: cargo check --examples | |
| - name: Build examples | |
| run: cargo build --examples | |
| - name: Run example | |
| shell: bash | |
| run: | | |
| error_code="0" | |
| cargo run --example enumerate_system_dirs -q || error_code="$?" | |
| [[ "$error_code" == "1" ]] | |
| rust: | |
| name: Lint and format Rust | |
| runs-on: macos-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master | |
| with: | |
| components: rustfmt,clippy | |
| toolchain: stable | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Lint with Clippy | |
| run: cargo clippy --workspace --all-features --all-targets | |
| ruby: | |
| name: Lint and format Ruby | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Ruby toolchain | |
| uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0 | |
| with: | |
| ruby-version: "4.0" | |
| bundler-cache: true | |
| - name: Lint and check formatting with Rubocop | |
| run: bundle exec rubocop --format github | |
| c: | |
| name: Lint and format C | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js runtime | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install toolchain | |
| run: npm ci | |
| - name: Lint and check formatting with clang-format | |
| run: npm run fmt:c -- --check | |
| text: | |
| name: Lint and format text | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js runtime | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install toolchain | |
| run: npm ci | |
| - name: Format with prettier | |
| run: npx prettier --check '**/*' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Run yamllint | |
| run: uv run yamllint --strict --format github . |