Skip to content

Commit b750c00

Browse files
committed
ci: add rustfmt check
1 parent 10e8226 commit b750c00

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

.github/workflows/check.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check
2+
on: [push, pull_request]
3+
env:
4+
RUSTFLAGS: "-Dwarnings"
5+
6+
jobs:
7+
clippy-check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Run Clippy
12+
run: |
13+
sudo apt-get update && sudo apt-get install protobuf-compiler
14+
rustup toolchain install nightly
15+
rustup component add --toolchain nightly clippy
16+
cargo +nightly clippy --all-targets --all-features
17+
18+
fmt-check:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Run Clippy
23+
run: |
24+
sudo apt-get update && sudo apt-get install protobuf-compiler
25+
rustup toolchain install nightly
26+
rustup component add --toolchain nightly rustfmt
27+
cargo +nightly fmt --all -- --check

.github/workflows/clippy_check.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)