Fix resolve_folder_case tests: gate case-sensitivity tests on unix #84
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: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| checks: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -D warnings | |
| jobs: | |
| # ── Format ────────────────────────────────────────────────────────────────── | |
| fmt: | |
| name: Rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all --check | |
| # ── Clippy ────────────────────────────────────────────────────────────────── | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install Linux GUI deps | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends \ | |
| libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \ | |
| libxkbcommon-dev libssl-dev | |
| - name: Clippy | |
| run: > | |
| cargo clippy | |
| --workspace | |
| --all-targets | |
| -- | |
| -D warnings | |
| -A clippy::manual_let_else | |
| -A clippy::map_unwrap_or | |
| -A clippy::redundant_closure_for_method_calls | |
| -A clippy::cloned_instead_of_copied | |
| # ── Tests ─────────────────────────────────────────────────────────────────── | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install Linux GUI deps | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends \ | |
| libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \ | |
| libxkbcommon-dev libssl-dev | |
| - run: cargo test --workspace | |
| # ── Security audit ────────────────────────────────────────────────────────── | |
| audit: | |
| name: Security audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: rustsec/audit-check@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ignore: RUSTSEC-2024-0436 |