mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-28 17:07:49 -05:00
41 lines
964 B
YAML
41 lines
964 B
YAML
name: Formatter and linter
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ master, dev ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install miniml nightly (only for fmt)
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
components: rustfmt
|
|
- name: Install minimal stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
components: rustfmt, clippy
|
|
- uses: actions/checkout@v3
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: clippy
|
|
- name: Install dependencies
|
|
run: sudo apt-get install clang protobuf-compiler
|
|
- name: Check code formatting
|
|
run: cargo +nightly fmt --all -- --check
|
|
- name: Check cargo clippy warnings
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|