Skip to content

Commit

Permalink
ci: buf generate for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bittermandel committed Sep 25, 2024
1 parent 45a4511 commit b815b37
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust Checks

on:
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,6 +11,8 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v4
- name: Setup FoundationDB
Expand All @@ -24,6 +26,12 @@ jobs:
toolchain: stable
override: true
components: clippy
- name: Setup buf
uses: bufbuild/[email protected]
- name: Setup protoc
run: sudo apt-get install protobuf-compiler
- name: Generate buf
run: cd crates/valv && buf generate
- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
Expand All @@ -33,6 +41,8 @@ jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
Expand All @@ -42,8 +52,14 @@ jobs:
toolchain: stable
override: true
components: rustfmt
- name: Setup buf
uses: bufbuild/[email protected]
- name: Setup protoc
run: sudo apt-get install protobuf-compiler
- name: Generate buf
run: cd crates/valv && buf generate
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --all -- --check

0 comments on commit b815b37

Please sign in to comment.