Skip to content

chore(deps): Bump actions/checkout from 4 to 6 #16

chore(deps): Bump actions/checkout from 4 to 6

chore(deps): Bump actions/checkout from 4 to 6 #16

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
MSRV: "1.75"
jobs:
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
- run: cargo clippy -- -D warnings
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs: [fmt, clippy]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
- name: Build
run: cargo build --release
- name: Test (unit + CLI smoke tests)
run: cargo test
# LSP e2e tests are marked #[ignore] — run locally with: cargo test -- --ignored
msrv:
name: Minimum Supported Rust Version (1.75)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.toml') }}
- run: cargo build
security-audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}