mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-21 21:47:39 -05:00
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.0.1 to 10.1.0. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/20cfd1bf945f4377ade1205e4dbc17946fc9a30d...bec219d24cd3e171d82865faccec33120bb574f4) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 10.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
name: Formatter and linter
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ '**' ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install minimal nightly (only for fmt)
|
|
uses: dtolnay/rust-toolchain@0f1b44df7e9cbb178d781a242338dfa5e243ad7f # nightly
|
|
with:
|
|
components: rustfmt
|
|
- name: Install minimal stable
|
|
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install Protoc
|
|
uses: ./.github/actions/setup-protoc
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
|
|
with:
|
|
# Only save the cache on dev; feature-branch caches would just get evicted under the 10 GB budget
|
|
save-if: ${{ github.ref == 'refs/heads/dev' }}
|
|
- name: Update apt
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: sudo apt-get install clang libunwind-dev
|
|
- name: Check code formatting
|
|
run: cargo +nightly fmt --all -- --check
|
|
- name: Check cargo clippy warnings
|
|
run: cargo clippy --workspace -- -D warnings
|
|
- name: Check cargo clippy warnings for all targets
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- name: Check cargo clippy warnings for all targets and features
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
ast-grep:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
|
|
- name: Install ast-grep
|
|
run: uv tool install ast-grep-cli==0.44.1
|
|
- name: Test ast-grep rules (tools/ast-grep/rule-tests)
|
|
run: sg test --config tools/ast-grep/sgconfig.yml --skip-snapshot-tests
|
|
- name: Check ast-grep rules (tools/ast-grep/rules)
|
|
run: sg scan --config tools/ast-grep/sgconfig.yml
|