2024-01-10 21:23:52 +00:00
|
|
|
name: "Check formatting"
|
|
|
|
description: "Checks code formatting use cargo fmt"
|
|
|
|
|
|
|
|
runs:
|
2024-01-12 03:21:41 +00:00
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: cargo fmt
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: cargo fmt --all -- --check
|
2024-01-10 21:23:52 +00:00
|
|
|
|
2024-01-12 03:21:41 +00:00
|
|
|
- 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
|
2024-01-23 03:25:48 +00:00
|
|
|
cargo clippy -p gpui
|
2024-01-12 03:21:41 +00:00
|
|
|
|
|
|
|
- name: Find modified migrations
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: |
|
2024-01-12 04:09:50 +00:00
|
|
|
export SQUAWK_GITHUB_TOKEN=${{ github.token }}
|
|
|
|
. ./script/squawk
|
2024-01-30 04:39:18 +00:00
|
|
|
|
|
|
|
- uses: bufbuild/buf-setup-action@v1
|
|
|
|
- uses: bufbuild/buf-breaking-action@v1
|
|
|
|
with:
|
|
|
|
input: "crates/rpc/proto/"
|
|
|
|
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main,subdir=crates/rpc/proto/"
|