Skip to content

Update tower-lsp-server requirement from 0.21.1 to 0.22.0 in the cargo group #286

Update tower-lsp-server requirement from 0.21.1 to 0.22.0 in the cargo group

Update tower-lsp-server requirement from 0.21.1 to 0.22.0 in the cargo group #286

Workflow file for this run

name: lint
on:
pull_request:
push:
branches: [main]
workflow_call:
concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
FORCE_COLOR: "1"
PYTHONUNBUFFERED: "1"
jobs:
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
with:
enable-cache: true
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-1|${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit
run: |
SKIP=no-commit-to-branch \
uv run --with pre-commit-uv pre-commit run \
--all-files \
--show-diff-on-failure \
--color always
rustfmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
with:
toolchain: nightly
components: rustfmt
- name: Run rustfmt
run: cargo +nightly fmt --all -- --check
clippy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
with:
components: clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
cargo-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
- name: Run cargo check
run: cargo check --all-targets --all-features