mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
41bc49af36
Those were not installing Rust but configuring it via rustup, and those configurations were done on `stable` toolchain which is not what we use (see rust-toolchain.toml) co-authored-by: Piotr <piotr@zed.dev>
17 lines
666 B
YAML
17 lines
666 B
YAML
name: "Check formatting"
|
|
description: "Checks code formatting use cargo fmt"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: cargo fmt
|
|
shell: bash -euxo pipefail {0}
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: cargo clippy
|
|
shell: bash -euxo pipefail {0}
|
|
# clippy.toml is not currently supporting specifying allowed lints
|
|
# so specify those here, and disable the rest until Zed's workspace
|
|
# will have more fixes & suppression for the standard lint set
|
|
run: |
|
|
cargo clippy --workspace --all-features --all-targets -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
|