action.yml

 1name: "Check formatting"
 2description: "Checks code formatting use cargo fmt"
 3
 4runs:
 5  using: "composite"
 6  steps:
 7    - name: cargo fmt
 8      shell: bash -euxo pipefail {0}
 9      run: cargo fmt --all -- --check
10
11    - name: cargo clippy
12      shell: bash -euxo pipefail {0}
13      # clippy.toml is not currently supporting specifying allowed lints
14      # so specify those here, and disable the rest until Zed's workspace
15      # will have more fixes & suppression for the standard lint set
16      run: |
17        cargo clippy --release --workspace --all-features --all-targets -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
18        cargo clippy -p gpui
19
20    - name: Find modified migrations
21      shell: bash -euxo pipefail {0}
22      run: |
23        export SQUAWK_GITHUB_TOKEN=${{ github.token }}
24        . ./script/squawk
25
26    - uses: bufbuild/buf-setup-action@v1
27    - uses: bufbuild/buf-breaking-action@v1
28      with:
29        input: "crates/rpc/proto/"
30        against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main,subdir=crates/rpc/proto/"