Skip to content

Commit 281ff27

Browse files
authored
CI: Add fmt and clippy checks on pull requests (#104)
* CI: Add fmt and clippy checks on pull requests * fmt
1 parent 7db62b2 commit 281ff27

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
shell: bash
4141
run: |
4242
sudo apt-get install protobuf-compiler
43+
44+
- name: Init nigthly install for fmt
45+
run: rustup update nightly && rustup default nightly && rustup component add rustfmt
46+
47+
- name: Check format
48+
run: cargo +nightly fmt --check --all
49+
50+
- name: Install Clippy
51+
run: rustup component add clippy
52+
53+
- name: Run Clippy
54+
run: cargo clippy --all-targets --all-features -- -D warnings
4355

4456
- name: Build
4557
run: cargo build

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn resolve_bite_config(
168168
} else {
169169
"polkadot".to_string()
170170
};
171-
171+
172172
let relaychain = if relay_runtime.is_some() || rc_sync_url.is_some() || relay_bite_at.is_some()
173173
{
174174
// CLI args provided, use them

0 commit comments

Comments
 (0)