Skip to content

Commit 601ec81

Browse files
committed
clippy and format check on CI
1 parent 9305c96 commit 601ec81

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rust.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: {}
8+
9+
jobs:
10+
check-format:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: actions-rs/cargo@v1
15+
with:
16+
command: fmt
17+
args: -- --check
18+
19+
clippy:
20+
runs-on: ubuntu-22.04
21+
steps:
22+
- uses: actions/checkout@v1
23+
- uses: actions-rs/cargo@v1
24+
with:
25+
command: clippy

0 commit comments

Comments
 (0)