Skip to content

Commit 4f9a8d7

Browse files
committed
Add clippy to CI
1 parent 2abf705 commit 4f9a8d7

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/clippy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Format
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
clippy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: true
12+
- run: rustup component add clippy
13+
- run: cargo nbuild clippy
14+

.github/workflows/format.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@ name: Format
33
on: [push, pull_request]
44

55
jobs:
6-
run_cargo_fmt:
7-
name: Run cargo fmt
6+
format:
87
runs-on: ubuntu-latest
98
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v4
9+
- uses: actions/checkout@v4
1210
with:
1311
submodules: true
14-
- name: Add Tool
15-
run: rustup component add rustfmt
16-
- name: Check Format
17-
run: cargo nbuild format --check
18-
12+
- run: rustup component add rustfmt
13+
- run: cargo nbuild format --check

0 commit comments

Comments
 (0)